When using `enableEdgeToEdge()`, is it possible fo...
# compose
u
When using
enableEdgeToEdge()
, is it possible for the
bottomBar
in
Scaffold
to be transparent ? By that I mean showing the
Scaffold
content as one scrolls. At the moment, if I set
containerColor
for the
Scaffold
to Transparant, I just see a dark grey background.
s
Is this on the three button navigation style? Some older Android versions still add some color to it even if you ask for a transparent color.
u
No. Its a BottomBar
s
If you don't use Scaffold at all, is it still grey?
u
It works as expected
s
What is it that you put in the slot for bottomBar then? That composable seems to get its color from somewhere else other than contentColor of Scaffold
u
Its the same code from the other thread. Initially it was in a
bottomBar
, but setting it to transparent just made it a dark grey/black so I moved it to
floatingActionButton
and that works as expected minus the padding,