Skip to content

Commit

Permalink
Add modifier parameter to ViewWithActionBar
Browse files Browse the repository at this point in the history
  • Loading branch information
saulhdev committed Aug 19, 2024
1 parent bfe93f6 commit 2ece7c7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -64,7 +65,6 @@ fun ViewWithActionBar(
) {
val scrollBehavior = enterAlwaysScrollBehavior(rememberTopAppBarState())


Scaffold(
topBar = {
TopAppBar(
Expand Down Expand Up @@ -118,7 +118,8 @@ fun ViewWithActionBar(
},
bottomBar = bottomBar,
floatingActionButton = floatingActionButton,
content = content
content = content,
modifier = modifier
)
}

Expand Down

0 comments on commit 2ece7c7

Please sign in to comment.