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

sindrenm

06/27/2022, 2:13 PM
Using accompanist-navigation-material's
ModalBottomSheetLayout
and
NavGraphBuilder.bottomSheet
builder, is there a way I can monitor the visible height of the bottom sheet in question? I want to pin a button to the bottom of the sheet, but it seems the actual height of the
sheetContent
is larger than what's visible and is hidden «below the screen», so to speak.
j

jossiwolf

07/04/2022, 12:40 PM
Does the `BottomSheetNavigatorSheetState`'s offset help you?
s

sindrenm

07/04/2022, 2:37 PM
It absolutely does. Thanks, Jossi! Now I need to figure out a new way to set a max height of my bottom sheets, though. Before, I had a
heightIn(max = ...)
, but that sort of messes with the offset and didn't feel too clean. 😅
j

jossiwolf

07/05/2022, 11:47 AM
Perfect🙏 Yes, setting the max height is not something we support - the Material guidelines state that the peek height for modal sheets isn't configurable. We're aware of the request though 🙂
12 Views