Is there way to fill the width of bottom sheet in ...
# compose-android
a
Is there way to fill the width of bottom sheet in
BottomSheetScaffold
to full screen width? I am using something like below but of no avail
Copy code
BottomSheetScaffold(
    modifier = Modifier.fillMaxWidth(),
    ...
I have seen that
BottomSheetScaffold.kt
hardcodes the width to
BottomSheetMaxWidth
to
640.dp
. Is there way to override that?
a
Thanks @Stylianos Gakis. But the commit above fixes the issue for
ModalBottomSheet
in my case
BottomSheetScaffold
uses the
StandardBottomSheet
s
I see! Time to not use bottom sheet scaffold and use ModalBottomSheet instead then 😂
a
Haha.. there is place for both.. 😅
a
can you try putting fillMaxWidth inside content
a
Na that will not work.. as
fillMaxWidth
only respects the incoming constraints and in this case that is set of
640.dp
so child will not go beyond that
also tried the same and it is not working