File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/components Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ fun NavigationBarExample(modifier: Modifier = Modifier) {
105105 var selectedDestination by rememberSaveable { mutableIntStateOf(startDestination.ordinal) }
106106
107107 Scaffold (
108+ modifier = modifier,
108109 bottomBar = {
109110 NavigationBar (windowInsets = NavigationBarDefaults .windowInsets) {
110111 Destination .entries.forEachIndexed { index, destination ->
@@ -139,7 +140,7 @@ fun NavigationRailExample(modifier: Modifier = Modifier) {
139140 val startDestination = Destination .SONGS
140141 var selectedDestination by rememberSaveable { mutableIntStateOf(startDestination.ordinal) }
141142
142- Scaffold { contentPadding ->
143+ Scaffold (modifier = modifier) { contentPadding ->
143144 NavigationRail (modifier = Modifier .padding(contentPadding)) {
144145 Destination .entries.forEachIndexed { index, destination ->
145146 NavigationRailItem (
@@ -172,7 +173,7 @@ fun NavigationTabExample(modifier: Modifier = Modifier) {
172173 val startDestination = Destination .SONGS
173174 var selectedDestination by rememberSaveable { mutableIntStateOf(startDestination.ordinal) }
174175
175- Scaffold { contentPadding ->
176+ Scaffold (modifier = modifier) { contentPadding ->
176177 PrimaryTabRow (selectedTabIndex = selectedDestination, modifier = Modifier .padding(contentPadding)) {
177178 Destination .entries.forEachIndexed { index, destination ->
178179 Tab (
You can’t perform that action at this time.
0 commit comments