Its weird that there’s a <https://developer.androi...
# compose
c
Its weird that there’s a BottomSheetScaffold but not a
ModalBottomSheetScaffold
🤔 why is that? just the case of yet to be created?
1
Scaffolds are for coordinating multiple persistent components together. Modal sheets are, by definition, not persistent. Maybe what you're actually looking for is a
ModalBottomSheetLayout
with a regular
Scaffold
inside of it?
c
Scaffolds are for coordinating multiple persistent components together.
what would be considered as persistent? Just things on the screen? If thats the case then the
BottomSheetScaffold
supports
drawer
s which are almost like modal bottomsheets, but more like side sheets
You mean like the already existing
ModalBottomSheetLayout
?
Yes, in the sense it would use
ModalBottomSheetLayout
but provide it through a Scaffold
i
You already have the components you need here:
ModalBottomSheetLayout
and
Scaffold
👍 1
c
You could technically say that about the
Scaffold
as well right? that you have the app bar and bottom bars all separately
i
yep, a
Column
will do everything a
Scaffold
with only an app bar and bottom bar will give you
It is when you want to start positioning FABs in relation to those elements, etc. that reaching for
Scaffold
makes those a lot easier
👍 2
☝️ 2