Created
September 6, 2021 11:30
-
-
Save lbenevento/6a198e71c04eee45fe456bd8867f5c87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ModalBottomSheetLayout( | |
sheetContent = { SheetContent() }, | |
sheetState = sheetState | |
) { | |
Column { | |
Spacer(modifier = Modifier | |
.background(MaterialTheme.colors.primary) | |
.statusBarsHeight() | |
.fillMaxWidth() | |
) | |
Scaffold( | |
topBar = { Toolbar() } | |
) { | |
MainContent( | |
onClick = { coroutineScope.launch { sheetState.show() } } | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment