Colton Idle
02/26/2021, 9:34 PMSurface(
color = MaterialTheme.colors.surface,
modifier = Modifier
.fillMaxSize()
.padding(16.dp)
) {
Column(
Modifier .verticalScroll(rememberScrollState())
) {
Card(elevation = 8.dp, backgroundColor = MaterialTheme.colors.surface) {
Text(text = "My card")
}
Andrey Kulikov
02/27/2021, 3:16 PMColton Idle
02/27/2021, 6:20 PMAndrey Kulikov
02/27/2021, 6:32 PMBox(
modifier = Modifier
.fillMaxSize()
.padding(16.dp)
.background(MaterialTheme.colors.surface)
)
Colton Idle
02/27/2021, 6:34 PMAndrey Kulikov
02/27/2021, 6:36 PMColton Idle
02/27/2021, 6:36 PMAndrey Kulikov
02/27/2021, 6:40 PMColton Idle
02/27/2021, 6:56 PMBox(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colors.surface)
) {
Column(
Modifier
.verticalScroll(rememberScrollState())
.padding(16.dp)
I'm going to try to simplify at this point and just have my scaffold hold a Column directly. I think that should work too, and it'll cut out the Box being needed.Andrey Kulikov
02/27/2021, 7:11 PMColton Idle
02/28/2021, 12:13 AM