Modifier.fillMaxHeight()
is not working, can some one explain me what I am doing wrong?
Row(Modifier.padding(horizontal = 32.dp, vertical = 16.dp).background(Color.Red)) {
Column(Modifier.fillMaxHeight().weight(1f).background(Color.Cyan)) {
Row {
Image(
asset = imageResource(id = Drawables.mappin),
Modifier.gravity(Alignment.CenterVertically)
)
Column(Modifier.padding(start = 16.dp)) {
Text(
text = "Address", style = TextStyle(
color = Color.Black.copy(alpha = 0.7f),
fontSize = 20.sp
)
)
Text(
text = "House # 2, Road # 5, Green Road Dhanmondi, Dhaka, Bangladesh",
style = TextStyle(color = Color.Gray)
)
}
}
Row {
Image(
asset = imageResource(id = Drawables.clock),
Modifier.gravity(Alignment.CenterVertically)
)
Column(Modifier.padding(start = 16.dp)) {
Text(
text = "Daily Practice", style = TextStyle(
color = Color.Black.copy(alpha = 0.7f),
fontSize = 20.sp
)
)
Text(
text = "Monday - Friday Open till 7 Pm",
style = TextStyle(color = Color.Gray)
)
}
}
}
Image(
asset = imageResource(id = Drawables.map),
modifier = Modifier.fillMaxHeight().weight(1f)
)
}