File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
app/src/main/java/es/cibernarium/jetpackcomposeapp Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -61,21 +61,24 @@ class MainActivity : ComponentActivity() {
61
61
62
62
@Composable
63
63
private fun SalutacioPersonal (nom : String ){
64
- Text (
65
- text = " Hola $nom !" ,
66
- color = Color .Red ,
67
- fontSize = 18 .sp,
68
- fontStyle = FontStyle .Italic ,
69
- fontWeight = FontWeight .Bold ,
70
- fontFamily = FontFamily .Serif
71
- )
64
+ MaterialTheme () {
65
+ Text (
66
+ text = " Hola $nom !" ,
67
+ color = Color .Red ,
68
+ fontSize = 18 .sp,
69
+ fontStyle = FontStyle .Italic ,
70
+ fontWeight = FontWeight .Bold ,
71
+ fontFamily = Serif ,
72
+ style = MaterialTheme .typography.titleMedium
73
+ )
74
+ }
72
75
}
73
76
@Composable
74
77
private fun Avatar (){
75
78
Image (
76
79
painter = painterResource(R .drawable.qx7jysym_400x400),
77
80
contentDescription = " Logo Refus" ,
78
- modifier = Modifier .height(100 .dp).clip( CircleShape ).background( Color . Blue )
81
+ modifier = Modifier .height(100 .dp)
79
82
)
80
83
}
81
84
@Composable
You can’t perform that action at this time.
0 commit comments