When placing items within ModalBottomSheet
they get stacked expanding the Bottom sheet
till they reach a certain threshold of height, beyond which the user has to scroll the Bottom sheet up to load the overflowing content.
I'm trying to place a bottom row of composables like a Button
and another rounded button, that's always fixed (whether the ModalBottomSheet
is expanded or not).
What I've tried (using scaffold/column to wrap the whole bottom sheet content) always results in the bottom row
being placed at the bottom, only at the expanded state.
That's that prototype that I'm aiming at
I can handle this via offset. First, create a value to calculate the height of ModalBottomSheet:
After that, add this:
And then you can handle any element with offset for example i have a LazyRow:
You can use every element, like Text, Button and etc...
bottomPadding: I created this for space between the device buttons and my element. footerHeight: this is the height of the element that you are using; if the element is static, use the static value.