Users of AnchoredDraggable and AnchoredDraggable components (
ModalBottomSheet/Layout
,
BottomSheetScaffold
,
SwipeToDismiss
,
Drawer/BottomDrawer/DismissibleNavigationDrawer
,
BackdropScaffold
), what are your use cases for the
progress
API?
d
dorche
08/15/2023, 5:43 PM
I'm pretty sure this exact question was asked before (here or in android compose) but our use case for it is to "gradually" apply top insets in BottomSheetScaffold:
Sheet has text/title near the top. In fully expanded state that title needs to have status bar padding but in half-expanded state it doesn't and it looks weird to have it all the time. Using progress to control this gives the smoothest UX in our tests.