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

Apache License 2.0
61 stars 93 forks source link

Modifier with duplicated chain function #149

Open Jaehwa-Noh opened 11 months ago

Jaehwa-Noh commented 11 months ago

URL of codelab Codelab

In which task and step of the codelab can this issue be found? 6 Add a switch - 2. implement the RoundTheTipRow()....

Describe the problem We set the .fillMaxWidth() at modifier, then set the modifier size to 48.dp, size contain both width and height, but we already define width with .fillMaxWidth(). We just need to set height.

So we need change .size(48.dp) to .height(48.dp)

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions Android Studio version: API version of the emulator:

Additional information Include screenshots if they would be useful in clarifying the problem.