Skip to content

Commit 87948ac

Browse files
authored
Update CustomModifierSnippets.kt (#174)
1 parent c47a8da commit 87948ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/modifiers/CustomModifierSnippets.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ fun Modifier.clip(shape: Shape) = graphicsLayer(shape = shape, clip = true)
6868
// [END android_compose_custom_modifiers_1]
6969

7070
// [START android_compose_custom_modifiers_2]
71-
fun Modifier.myBackground(color: Color) = this then Modifier
72-
.padding(16.dp)
71+
fun Modifier.myBackground(color: Color) = padding(16.dp)
7372
.clip(RoundedCornerShape(8.dp))
7473
.background(color)
7574
// [END android_compose_custom_modifiers_2]

0 commit comments

Comments
 (0)