Slide 14
Slide 14 text
Comment fonctionne ?
@Composable
fun CallCard(
userName: String,
modifier: Modifier = Modifier,
){
Card(
modifier = modifier,
shape = RoundedCornerShape(8.dp),
) {
Column(
modifier = Modifier
. padding(16.dp),
horizontalAlignment =
Alignment.CenterHorizontally ,
) {
Icon(
imageVector = Icons.Rounded. Call,
contentDescription = "Call Icon"
)
Text(userName)
}
}
}
@Composable
@Preview
internal fun CallCardPreview ()
{
CallCard("Robin")
}