Hi there! Is there any way to know the progress of...
# compose
a
Hi there! Is there any way to know the progress of a ModalBottomSheet on Android? My idea is to animate the corner radius while the modalbottomsheet is appearing from bottom to the top of the screen. So, for doing that, I should know any frequently value (each frame for example) that tells me where is positioned the modal over the screen to calculate the percent of the radius to be applied. I've checked the SheetState and other modifier functions but seems that any of this options fits well.
c
I believe there used to be a way to do this (i used it for some anims in the past as well), but I think after a few recent updates that was removed as a bunch of things were refactored in bottom sheets.
a
Oh 😞 then, I will wait. Thanks so much! 🤗
c
@jossiwolf sorry again for the ping. but heres someone else with a usecase. 😅
j
This is for M3, I don't think the progress was ever exposed. We recently re-exposed the progress in M2 though and cherry-picked that into the upcoming release