Describe the problem
Para desativar tem que mudar dentro da função: ItemDetailsBody
-> Button
enabled = true
para
enabled = !itemDetailsUiState.outOfStock
Steps to reproduce?
Go to...
Click on...
See error...
VersionsAndroid Studio version:API version of the emulator:
Additional informationInclude screenshots if they would be useful in clarifying the problem.
URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?hl=pt_br#7 Specify the language of the codelab if it is not English: Portuguese In which task and step of the codelab can this issue be found? Não fica desativado o botão Sell
Describe the problem Para desativar tem que mudar dentro da função: ItemDetailsBody -> Button enabled = true para enabled = !itemDetailsUiState.outOfStock
Steps to reproduce?
Versions Android Studio version: API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.