Search code examples
androidmaterial-designandroid-jetpack-composematerial-components-androidandroid-jetpack-compose-material3

Drawer usage in Compose Material3


Is there a way to have the menu overlap the header and footer here?

I am using androidx.compose.material3.Scaffold and NavigationDrawer.

It seems like the Scaffold's drawer slot is removed - https://android-review.googlesource.com/c/platform/frameworks/support/+/1896804 so the instructions at https://developer.android.com/jetpack/compose/layouts/material?hl=hu#drawers no longer apply.

enter image description here


Solution

  • Please have a look at ModalNavigationDrawer, which provides the drawer. You can use your Scaffold as a content of the ModalNavigationDrawer.

    It seems like this has been split up into multiple components....