Is this the expected behavior for a bottom drawer ...
# compose
r
Is this the expected behavior for a bottom drawer layout?
m
Yeah, per spec BottomDrawer always open half screen since it's expected to have a lot of content with header, destinations, etc. What you are looking for is
ModalBottomSheet
, it should have the behaviour you want
r
Awesome, thanks @matvei!
n
@matvei Can we change the ModalBottomSheetLayout content on runtime? like to show different ui on different condition i.e show progress bar , content after fetch from network etc
m
Should be possible,
ModalBottomSheetLayout
should resize itself when content changes. Let me know if it doesn't work for you.
n
If i am applying check on two composable to switch view it is throwing IllegalsateException saying snapshot has aalready been taken
m
Not sure I understand the problem. What compose alpha version are you using?
n
alpha04
m
I remember there was a bug with snapshot reads in alpha 04, try to update to 05
n
ok, Thanks I'll try with this version too