https://kotlinlang.org logo
#compose
Title
# compose
b

bhatnagarm

04/21/2020, 9:09 AM
Hey Everyone, Did anyone try to start a progressBar on a button click. For me it gives an compile time error
Functions which invoke @Composable functions must be marked with the @Composable annotation
which is fine. I'm wondering what's the alternative to this.
m

manueldidonna

04/21/2020, 9:24 AM
The visibility of the progress bar should depends on a state and you should mutate that state in the onClick callback
👆 2