From 3d599202f984e5a895593a9330014a7adaa59f58 Mon Sep 17 00:00:00 2001 From: Yasan Ghaffarian Date: Sun, 17 Mar 2024 13:19:45 +0100 Subject: [PATCH] Allow disabling topBar & bottomBar dividers --- .../kotlin/glass/yasan/concrete/component/LazyScreen.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/concrete/src/main/kotlin/glass/yasan/concrete/component/LazyScreen.kt b/concrete/src/main/kotlin/glass/yasan/concrete/component/LazyScreen.kt index 788df26..ec2cc99 100644 --- a/concrete/src/main/kotlin/glass/yasan/concrete/component/LazyScreen.kt +++ b/concrete/src/main/kotlin/glass/yasan/concrete/component/LazyScreen.kt @@ -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, ) { @@ -27,7 +29,7 @@ public fun LazyScreen( .background(ConcreteTheme.colors.layer.foreground) ) { topBar() - Divider() + Divider(enabled = showTopBarDivider) } } LazyColumn( @@ -39,7 +41,7 @@ public fun LazyScreen( modifier = Modifier .background(ConcreteTheme.colors.layer.foreground) ) { - Divider() + Divider(enabled = showBottomBarDivider) bottomBar() } }