google-developer-training / basic-android-kotlin-compose-training-tip-calculator

Apache License 2.0
61 stars 93 forks source link

Calculate a custom tip: Android Basics with Compose (Just a logic change) #219

Open ashrafkerawala opened 2 months ago

ashrafkerawala commented 2 months ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-calculate-tip?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-calculate-tip#5

In which task and step of the codelab can this issue be found? Add a switch

  1. In the Switch composable, add this modifier to align the Switch composable to the end of the screen:

Describe the problem It is said modifier with small "m" but it should be modifier with capital M. Small "m" adds padding to switch that we give to the Row. This means only Text(...) will be the one without padding breaking the alignment between text and switch