Skip to content

Commit c4741cf

Browse files
committed
Update M3SupportScaffoldSnippet
1 parent 1da22a0 commit c4741cf

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/layouts/InsetsSnippets.kt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ fun ConsumedFromPaddingSnippet() {
124124
@Preview
125125
@Composable
126126
fun M3SupportScaffoldSnippet() {
127-
val colors = listOf(Color.Red, Color.Blue, Color.Yellow)
128127
// [START android_compose_insets_m3_scaffold]
129128
Scaffold { innerPadding ->
130129
// innerPadding contains inset information for you to use and apply
@@ -133,14 +132,7 @@ fun M3SupportScaffoldSnippet() {
133132
modifier = Modifier.consumeWindowInsets(innerPadding),
134133
contentPadding = innerPadding
135134
) {
136-
items(count = 100) {
137-
Box(
138-
Modifier
139-
.fillMaxWidth()
140-
.height(50.dp)
141-
.background(colors[it % colors.size])
142-
)
143-
}
135+
//..
144136
}
145137
}
146138
// [END android_compose_insets_m3_scaffold]

0 commit comments

Comments
 (0)