Lilly
04/23/2022, 8:36 PMColumn(modifier = Modifier
.padding(24.dp)
.fillMaxSize()
.verticalScroll() // this causes the clipping
) {
Card(elevation = 16.dp) {}
}
bohregard
04/24/2022, 12:24 AMsetContent {
CardTestTheme {
// A surface container using the 'background' color from the theme
Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colors.background
) {
Column(modifier = Modifier.padding(24.dp).fillMaxSize()) {
Card(elevation = 16.dp) {
Box(modifier = Modifier.padding(12.dp)) {
Text(
style = MaterialTheme.typography.h5,
text = "Connection and Communication"
)
}
}
}
}
}
}
bohregard
04/24/2022, 12:25 AMLilly
04/24/2022, 12:42 AMverticalScroll(rememberScrollState())
to the parent Container. I just figured out that it only happens when this Modifier is set.Lilly
04/24/2022, 12:43 AMbohregard
04/24/2022, 12:45 AMbohregard
04/24/2022, 12:45 AMbohregard
04/24/2022, 12:46 AMbohregard
04/24/2022, 12:46 AMLilly
04/24/2022, 12:48 AMbohregard
04/24/2022, 12:49 AM