https://kotlinlang.org logo
Title
d

Deepak Gahlot

04/26/2023, 7:51 AM
After updating JetPack Compose to 1.4.6 getting an error in ModelBottomSheet
sheetState.animateTo(ModalBottomSheetValue.Expanded)
Cannot access 'animateTo': it is internal in 'ModalBottomSheetState'.
z

Zaki Shaikh

04/26/2023, 8:01 AM
I think you must read Release Notes of compose version 1.4.6 you will definitely find the reason and alternative.
o

Othman El Jazouli

04/26/2023, 10:09 AM
sheetState.show()/hide() is what you want I think
d

Deepak Gahlot

04/26/2023, 10:10 AM
Thank you. I went through the release notes and figured it out.
m

mattinger

04/28/2023, 2:13 AM
I wish the release notes were a bit easier to read. For instance, when 1.4.0 comes out, i don't want to scroll through every single alpha, beta and rc. Why not just combine them in a general 1.4.0 release notes? I know it's a small thing, but would make things infinitely easier. Also, I know that this particular change is on an Experimental api, and therefore "use at your own risk" and "subject to change" without a major version bump. But it would be helpful to have a section on breaking changes to the experimental apis. I wouldn't care so much if i had an alternative to using the experimental bottom sheet support.