In which task and step of the codelab can this issue be found?
In the sub step number 8
Describe the problem
The code uses the modifier with the small letter m. Which means the modifier that was passed to RoundTheTipRow composable is the same modifier that will be used for the switch. This should be changed to a new instance of the modifier.
The code should be:
Without this, when you follow sub step 11, and supply padding the RoundTheTipRow, you'll notice that the switch gets an unwanted padding because it uses the same modifier.
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? In the sub step number 8
Describe the problem The code uses the modifier with the small letter m. Which means the modifier that was passed to RoundTheTipRow composable is the same modifier that will be used for the switch. This should be changed to a new instance of the modifier. The code should be:
Without this, when you follow sub step 11, and supply padding the RoundTheTipRow, you'll notice that the switch gets an unwanted padding because it uses the same modifier.