Skip to content

Commit 58e04ef

Browse files
committed
Show Spacers in the demo
1 parent 48b0806 commit 58e04ef

File tree

1 file changed

+12
-0
lines changed
  • demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo

1 file changed

+12
-0
lines changed

demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Common.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,17 @@ fun Common(/*modifier: Modifier = Modifier*/) {
8181
BasicText("shown text")
8282
BasicText("hidden text", Modifier.hidden())
8383
BasicText("shown text")
84+
85+
// Background color doesn't work in a `Spacer` modifier.
86+
Column {
87+
BasicText("above spacer")
88+
Spacer(Modifier.height(32.dp))
89+
BasicText("below spacer")
90+
}
91+
Row {
92+
BasicText("left to spacer")
93+
Spacer(Modifier.width(32.dp))
94+
BasicText("right to spacer")
95+
}
8496
}
8597
}

0 commit comments

Comments
 (0)