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
Colton Idle
06/14/2023, 3:16 PM
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
Adrián Lázaro
06/14/2023, 4:57 PM
Oh 😞 then, I will wait. Thanks so much! 🤗
c
Colton Idle
06/15/2023, 2:21 AM
@jossiwolf sorry again for the ping. but heres someone else with a usecase. 😅
j
jossiwolf
06/15/2023, 7:10 AM
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