Is there a modifier im missing to get the snackbar...
# compose
b
Is there a modifier im missing to get the snackbar to align to the bottom?
m
Hey. It depends on how you show it? What's the parent of the Snackbar? I presume it's a
Stack
?
f
You can add a Spacer with a modifier.weight(1) on top of it
In a column, that is
b
@matvei it's in a scaffold body content right now
f
Yes you need a row or column or stack context for the alignment modifiers aka the gravity (what??) modifiers
☝️ 1
So you could wrap it with a row or stack with a fillMaxHeight() and align it to the bottom, can’t do it with a column for unknown reasons, in a column you can have a weight(1) spacer
m
Yeah,
Stack
with your content and the Snackbar with
Modifier.gravity(BottomCenter)
should work just fine
b
cool that works
now to just get it above bottom bar