I'm trying to find example code for bottom navigat...
# compose
j
I'm trying to find example code for bottom navigation drawers (https://material.io/components/navigation-drawer/android#bottom-navigation-drawer) in compose but can't seem to find much on this topic.
https://stackoverflow.com/questions/67744381/jetpack-compose-scaffold-modal-bottom-sheet/67744625#67744625 Do I have to really add the modal bottom sheet all the way at the top of my scaffold code... This is a very specific screen modal, just seems out of place to place it so far away from the screen its on
c
You might be interested in starring this request for a proper modal bottom sheet https://issuetracker.google.com/issues/194911951
j
Bottom Drawers and Bottom Sheets are different things. Compose Material provides implementations for both: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]rSamples.kt;l=84;drc=8d6d4b7814f440065dd1f8544bbdd144b57e5bbf https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]/androidx/compose/material/samples/ModalBottomSheetSamples.kt But they are built on the same principles. Currently, there is no "local" sheet component. The closest thing you can have currently is through using Accompanist Navigation Material and declaring your sheets through
bottomSheet
destinations.
@Colton Idle What is that ticket about? I thought there already was one for considering a more local design
c
When compose came out, at the bottom of the blog post there was a section for filing bugs for the roadmap. To me, the fact that a modal bottom sheet doesn't exist that works like a modal dialog is the biggest blocker, so that's why I filed it.