Relative Content

Tag Archive for kotlinandroid-jetpack-composebottom-sheet

Why requireOffset function causing app to crash, even in LaunchedEffect?

I need progress of bottomSheetScaffold in float value, so I am using requireOffset function of bottomSheetScaffold, as progress parameter which was available in material is not available in material3. In Android studio I have live edit turned On, and Whenever I change code anywhere, app is crashing, and Im getting error like trying to get offset before its initialized.
Here is my code