what would be the best way to make the container o...
# compose
y
what would be the best way to make the container of this LazyRow, TextField and LazyVerticalGrid scrollable knowing that we can't have nested scrollable in the same direction layouts ?
j
You should create one big
LazyColumn
.
LazyRow
and
TextField
will be the first two `item`s of this Column. Then you have to basically take out the content of
LazyVerticalGrid
and paste it inside that column as well. You can also try spans in LazyVerticalGrid, support was added in version 1.1.0-beta03 (https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.1.0-beta03), however, there is this problem that makes it quite unusable: https://issuetracker.google.com/issues/207462103
1
y
Can't put
LazyVerticalGrid
inside a
LazyColumn
or in a scrollable column