Skip to content

Commit a9def19

Browse files
committed
Try moving the snackbarHost in TopAppBarScaffold to be above the bottom bar by putting it inside the position: relative div but it doesn't work
Pass a `bottomBar` argument BTW.
1 parent 7178267 commit a9def19

File tree

1 file changed

+2
-0
lines changed
  • demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo

1 file changed

+2
-0
lines changed

demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Material2.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ fun Material2(/*modifier: Modifier = Modifier*/) {
3737
}, actions = {
3838
MaterialIconActionButton({}, icon = Icons.Default.Search, contentDescription = "search")
3939
MaterialIconActionButton({}, icon = Icons.Default.Done, contentDescription = "done")
40+
}, bottomBar = {
41+
Text("Bottom bar") // The Material 2 bottom bar is not added so this is a placeholder.
4042
}, snackbarHost = {
4143
SnackbarHost(snackbarHostState)
4244
}, floatingActionButton = {

0 commit comments

Comments
 (0)