bhatnagarm

    bhatnagarm

    2 years ago
    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.
    manueldidonna

    manueldidonna

    2 years ago
    The visibility of the progress bar should depends on a state and you should mutate that state in the onClick callback