https://kotlinlang.org logo
#compose
Title
# compose
j

Justin Xu

02/11/2023, 5:17 AM
By default,
ModalBottomSheetLayout
is able to show only the top half of the sheet even if the actual sheet content is the full size of the screen. Is there a way to disable this "half" state of the bottom sheet and force it to show the entire content?
l

Luca Nicoletti

02/11/2023, 7:53 AM
Copy code
.animateTo(                     ModalBottomSheetValue.Expanded)
c

Chris Fillmore

02/12/2023, 1:07 AM
I think you want the
isSkipHalfExpanded
parameter
j

jossiwolf

02/13/2023, 6:42 AM
The animateTo API was removed in favor of the show/hide APIs recently. As Chris says, use skipHalfExpanded to indicate whether you want to include a half expanded state or not :)
5 Views