- Notifications
You must be signed in to change notification settings - Fork2
Jetpack Compose BottomDrawerScaffold (Material 3 Bottom Drawer)
License
NotificationsYou must be signed in to change notification settings
ch4rl3x/BottomDrawerScaffold
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Compose BottomDrawerScaffold which implements the Material Bottom Drawer
https://material.io/components/navigation-drawer#bottom-drawer
The Drawer stays visible in collapsed state to show header or quick access features.
Edge-To-Edge support
Add actual BottomDrawerScaffold library:
dependencies { implementation'de.charlex.compose:bottom-drawer-scaffold:1.1.0-beta02'}Use like any other Scaffold
BottomDrawerScaffold( modifier=Modifier topBar= {//Optional... }, bottomBar= {//Optional... }, floatingActionButton= {//Optional... }, isFloatingActionButtonDocked=true, floatingActionButtonPosition=FabPosition.End,//Add drawerTopInset for Edge-To-Edge Suppport scaffoldState= rememberBottomDrawerScaffoldState(drawerTopInset=LocalWindowInsets.current.statusBars.top), snackbarHost= {... }, drawerModifier=Modifier, drawerGesturesEnabled=true, drawerPeekHeight=150.dp, drawerBackgroundColor=Color.Transparent,//Transparent drawer for custom Drawer shape drawerElevation=0.dp, drawerContent= {Surface(//To add Padding to Drawer modifier=Modifier .padding( start=10.dp, end=10.dp, top=10.dp ), shape=RoundedCornerShape(topStart=20.dp, topEnd=20.dp), elevation=4.dp ) {... } }) { content()}
That's it!
Copyright 2021 Alexander KarkossaLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.About
Jetpack Compose BottomDrawerScaffold (Material 3 Bottom Drawer)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
