Grigorii Yurkov
10/22/2020, 12:54 PMHalil Ozercan
10/22/2020, 1:13 PMweight(1f)
modifier to Text composable.Grigorii Yurkov
10/22/2020, 1:15 PMtieskedh
10/22/2020, 1:30 PMGrigorii Yurkov
10/22/2020, 1:31 PMZach Klippenstein (he/him) [MOD]
10/22/2020, 2:03 PMEnd
, which is a horizontal alignment, to the align
modifier from the Row scope, which only accepts vertical alignments.
@Grigorii Yurkov In compose, "gravity" and "alignment" mean the same thing (gravity modifiers and parameters were recently renamed to align). Both Halil's suggestions should work.
Yeah, I tried to use Space with weight, but I didn't find Composable function for itCan you elaborate?
Spacer(Modifier.weight(1f))
should do the trick.tieskedh
10/22/2020, 2:05 PMGrigorii Yurkov
10/22/2020, 2:08 PM