In substep 8: In the Switch composable, add this modifier to align the Switch composable to the end of the screen:
The modifier passed to be Switch should be a new instance, not the instance passed down from the Composable parameter (Modifier, not modifier), otherwise, the Switch will be incorrectly aligned inside the RoundTheTipRow Composable
URL of codelab
Step 6
In substep 8: In the
Switch
composable, add thismodifier
to align theSwitch
composable to the end of the screen:The modifier passed to be
Switch
should be a new instance, not the instance passed down from the Composable parameter (Modifier
, notmodifier
), otherwise, theSwitch
will be incorrectly aligned inside theRoundTheTipRow
ComposableAdditional information With
modifier
:With
Modifier
: