From 2ece7c7a608e4a020146d5b7469739ced98aef58 Mon Sep 17 00:00:00 2001 From: saulhdev Date: Mon, 19 Aug 2024 06:06:34 -0600 Subject: [PATCH] Add modifier parameter to ViewWithActionBar --- .../saulhdev/feeder/compose/components/ViewWithActionBar.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/saulhdev/feeder/compose/components/ViewWithActionBar.kt b/app/src/main/java/com/saulhdev/feeder/compose/components/ViewWithActionBar.kt index d2dadb8..8b48c26 100644 --- a/app/src/main/java/com/saulhdev/feeder/compose/components/ViewWithActionBar.kt +++ b/app/src/main/java/com/saulhdev/feeder/compose/components/ViewWithActionBar.kt @@ -55,6 +55,7 @@ fun ViewWithActionBar( title: String, titleSize: TextUnit = 18.sp, subTitle: String = "", + modifier: Modifier = Modifier, bottomBar: @Composable () -> Unit = {}, floatingActionButton: @Composable () -> Unit = {}, showBackButton: Boolean = true, @@ -64,7 +65,6 @@ fun ViewWithActionBar( ) { val scrollBehavior = enterAlwaysScrollBehavior(rememberTopAppBarState()) - Scaffold( topBar = { TopAppBar( @@ -118,7 +118,8 @@ fun ViewWithActionBar( }, bottomBar = bottomBar, floatingActionButton = floatingActionButton, - content = content + content = content, + modifier = modifier ) }