https://kotlinlang.org logo
#compose
Title
# compose
r

Robert Menke

11/04/2020, 5:10 PM
Is this the expected behavior for a bottom drawer layout?
m

matvei

11/04/2020, 5:13 PM
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

Robert Menke

11/04/2020, 5:14 PM
Awesome, thanks @matvei!
n

Nipun Rajput

11/05/2020, 8:56 AM
@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

matvei

11/05/2020, 10:13 AM
Should be possible,
ModalBottomSheetLayout
should resize itself when content changes. Let me know if it doesn't work for you.
n

Nipun Rajput

11/05/2020, 10:15 AM
If i am applying check on two composable to switch view it is throwing IllegalsateException saying snapshot has aalready been taken
m

matvei

11/05/2020, 10:59 AM
Not sure I understand the problem. What compose alpha version are you using?
n

Nipun Rajput

11/05/2020, 11:00 AM
alpha04
m

matvei

11/05/2020, 11:02 AM
I remember there was a bug with snapshot reads in alpha 04, try to update to 05
n

Nipun Rajput

11/05/2020, 11:03 AM
ok, Thanks I'll try with this version too
4 Views