Using <accompanist-navigation-material>'s `ModalBo...
# compose
s
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
Does the `BottomSheetNavigatorSheetState`'s offset help you?
s
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
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 🙂