Ink
10/23/2021, 7:07 PMInk
10/23/2021, 7:07 PMAppTheme(isSystemInDarkTheme()) {
Row(
modifier = Modifier
.fillMaxWidth()
.height(40.dp)
) {
IconButton(
modifier = Modifier
.height(40.dp)
.width(60.dp)
.clip(RoundedCornerShape(5.dp))
) {
Icon(
imageVector = Icons.Filled.ArrowBack,
modifier = Modifier.padding(10.dp)
)
}
Text(
modifier = Modifier
.padding(start = 8.dp)
.clip(RoundedCornerShape(5.dp))
.fillMaxWidth()
.height(40.dp),
text = "Lorem Ipsu",
maxLines = 1,
textAlign = TextAlign.Center
)
}
}
Vivek Sharma
10/23/2021, 7:13 PMModifier.align(Alignment.CenterVertically)
in the Text
ModifierVivek Sharma
10/23/2021, 7:13 PMmodifier = Modifier
.padding(start = 8.dp)
.clip(RoundedCornerShape(5.dp))
.fillMaxWidth()
.height(40.dp)
.align(Alignment.CenterVertically)