TheMrCodes
02/09/2021, 2:17 PMTheMrCodes
02/09/2021, 2:17 PM@Composable
fun MainContent() {
Row(
horizontalArrangement = Arrangement.spacedBy(16.dp),
modifier = Modifier
.background(MaterialTheme.colors.primary)
.padding(16.dp)
.clickable { println("Click") }
) {
Icon(
imageVector = Icons.Filled.Add,
contentDescription = "Add icon",
tint = MaterialTheme.colors.onPrimary,
modifier = Modifier as Modifier
)
Text("Add new", color = MaterialTheme.colors.onPrimary, fontWeight = FontWeight.Normal)
}
}
julioromano
02/09/2021, 2:20 PMSinan Gunes
02/09/2021, 2:20 PMpadding
and clickable
linesTheMrCodes
02/09/2021, 2:22 PM