henrikhorbovyi
06/06/2020, 11:24 PMCenter
composable?
example
Center {
Text("I'm in the center now")
}
matvei
06/06/2020, 11:30 PMModifier.wrap(Alignment.Center)
so Text will relax constaints put in it and center itself in the parent layout, if possible.
• If you want to center it in a Stack
or a Column / Row
this components has scopes that provide modifiers to center within themselfes as well.henrikhorbovyi
06/07/2020, 12:02 AMModifier.wrap