Skip to content

Instantly share code, notes, and snippets.

@takahirom
Created November 9, 2021 01:14
Show Gist options
  • Save takahirom/5110387808ad985de7e3e8221abdbd39 to your computer and use it in GitHub Desktop.
Save takahirom/5110387808ad985de7e3e8221abdbd39 to your computer and use it in GitHub Desktop.
@Composable
fun Main() {
MyVerticalBox(
name = "box1",
modifier = Modifier.background(Color.Yellow)
) {
MyVerticalBox(
name = ">box2",
modifier = Modifier
.size(100.dp)
.background(Color.Red)
)
MyVerticalBox(name = ">box3") {
MyVerticalBox(
name = ">>box4",
modifier = Modifier
.size(50.dp)
.background(Color.Green)
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment