This commit is contained in:
coco
2026-07-15 16:57:36 +08:00
parent 723ce1af5c
commit 95aa018b8b
314 changed files with 8910 additions and 0 deletions
@@ -0,0 +1,28 @@
<!---
This is the API of version 1.2.0
-->
# Spacer
Spacer is a Composable that can be used when you want to add an additional space between Composables
<p align="center">
<img src ="../{{ site.images }}/foundation/layout/spacer/spacer.png" height=50 width=50 style="border: 1px solid black;" />
</p>
## Example
```kotlin
@Composable
fun SpacerDemo() {
Column {
Text("Hello")
Spacer(modifier = Modifier.size(30.dp))
Text("World")
}
}
```
## See also:
* [Full Example Code]({{ site.samplefolder }}/foundation/layout/SpacerDemo.kt)