John O'Reilly
10/15/2021, 9:16 AMJohn Nichol
10/15/2021, 12:09 PMJohn Nichol
10/15/2021, 12:09 PMJohn Nichol
10/15/2021, 12:27 PMJohn Nichol
10/15/2021, 12:28 PMJohn Nichol
10/15/2021, 12:28 PMJohn Nichol
10/15/2021, 12:29 PM@Composable
fun ExampleRoundScreenPadding(appState: SampleAppState) {
Box(modifier = Modifier.fillMaxSize().fillMaxRectangle()) {
Text(
text ="Katherine Megan ...
Zoltan Demant
10/15/2021, 12:36 PMJohn O'Reilly
10/15/2021, 12:45 PMPersonDetailsScreen
)
https://github.com/joreilly/PeopleInSpace/tree/compose_wear_details_screenmaciejciemiega
10/15/2021, 2:45 PMRectangleInsetModifier
) created only to pass custom inspectorInfo
? π€
Otherwise It would behave the same way with just this.padding(inset)
, right?John Nichol
10/15/2021, 3:02 PMthis.then(padding(all = inset))
but yesmaciejciemiega
10/15/2021, 4:09 PMthen
is needed here. We can just use padding()
because the receiver in composed { }
is an empty Modifier
, or be explicit about it: Modifier.padding()
(and .padding()
already does the then
inside of it)maciejciemiega
10/15/2021, 4:10 PMinspectorInfo
also πyschimke
10/17/2021, 3:39 PMyschimke
10/17/2021, 3:39 PMyschimke
10/17/2021, 3:40 PMJohn O'Reilly
10/17/2021, 3:40 PMsaryong
10/18/2021, 7:18 AM