Skip to content

Commit

Permalink
Allow disabling topBar & bottomBar dividers
Browse files Browse the repository at this point in the history
  • Loading branch information
yasanglass committed Mar 17, 2024
1 parent 876d0e6 commit 3d59920
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import glass.yasan.concrete.theme.ConcreteTheme
public fun LazyScreen(
content: LazyListScope.() -> Unit,
modifier: Modifier = Modifier,
showTopBarDivider: Boolean = true,
showBottomBarDivider: Boolean = true,
topBar: (@Composable () -> Unit)? = null,
bottomBar: (@Composable () -> Unit)? = null,
) {
Expand All @@ -27,7 +29,7 @@ public fun LazyScreen(
.background(ConcreteTheme.colors.layer.foreground)
) {
topBar()
Divider()
Divider(enabled = showTopBarDivider)
}
}
LazyColumn(
Expand All @@ -39,7 +41,7 @@ public fun LazyScreen(
modifier = Modifier
.background(ConcreteTheme.colors.layer.foreground)
) {
Divider()
Divider(enabled = showBottomBarDivider)
bottomBar()
}
}
Expand Down

0 comments on commit 3d59920

Please sign in to comment.