Hi :slightly_smiling_face: Does anyone know how we...
# compose
e
Hi 🙂 Does anyone know how we can change the width of ModalDrawerLayout?
m
Hello! ModalDrawerLayout doesn't accept a modifier (it probably should), so for now if you want to restrict width of the ModalDrawerLayout, you can wrap it with the
Box(Modifier.width(yourDesiredWidth.dp))
What's your general usecase for changing width of ModalDrawerLayout? It usually should be fullscreen. Just curious
e
Thanks. Tried it, but it changed the whole screen. I wonder if it is possible to change only the width of the drawerContent in ModalDrawerLayout. Tried to wrap it with the Box, but it didn't work.
m
Ok, I see. I don't think it's possible now to change the size of the content, as it always will be with the background provided by
MaterialTheme
and as big as the ModalDrawerLayout itself. Please, file a bug with the feature requiest and we will try to some with smth more flexible, thanks 🙂
👍 1
e
Thanks a lot 🙂