This is because whether the sheet should be half-expanded or expanded is just an implementation detail right now; the only intention you can express is to show the sheet. Right now it's not really possible to do this but it will be possible to configure your
ModalBottomSheetLayout
soon (CL:
https://android-review.googlesource.com/c/platform/frameworks/support/+/1891098, just need to update a small thing).
RE:
BottomSheetNavigator
- you shouldn't be using a
ModalBottomSheetState
explicitly if you are using Accompanist Nav Material, prefer using
rememberBottomSheetNavigator
which sets this up for you. By holding a
ModalBottomSheetState
on your own, you are risking
BottomSheetNavigator
getting out of sync if you control it manually - the
BottomSheetNavigator
constructor that takes the sheet state will be made internal soon too to avoid this.
Once we merge the CL upstream in Material, I'll add an API for this asap in Accompanist. (Hopefully something like end of next week or the week after)