What is the most straightforward way to implement ...
# compose
a
What is the most straightforward way to implement a “ModalNavigationDrawer” that pulls out from the right, not the left? I would like to implement a “filter” panel like Nick Butcher had in his Plaid app. So its not actually be using for navigation, just complex filter options.
j
Side sheets aren't available in Compose Material3, so "the most straightforward" way is probably to build your own
The source seems relatively straightforward, ModalNavigationDrawer just consists of a
Scrim
and a
Layout
that draws over top of it https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]erial3%2FNavigationDrawer.kt%20function:ModalNavigationDrawer
👍 1