Hi there! Is there any way to know the progress of...
# compose-android
a
Hi there! Is there any way to know the progress of a ModalBottomSheet? 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.
o
If I am not mistaken it is not possible as for now, but it is planned to re-expose progress stuff, see: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1680503340278869?thread_ts=1680356826.055979&cid=CJLTWPH7S
a
perfect! thanks so much for the answer! 🤗
j
Fwiw this is for M2 components, not M3. The M3 plans are separate. I believe it's on the team's roadmap but can't hurt to file an issue
a
Perfect @jossiwolf, thanks for the clarification 😊 I've already opened an issue in the tracker -> https://issuetracker.google.com/issues/287110112 @Colton Idle FYI in case that you want to follow up the issue
c
Starred! Thanks!