Does anyone know if there’s a more general equival...
# compose
m
Does anyone know if there’s a more general equivalent of the snackbar for arbitrary banner content? Aside from the issue of it not being very flexible (even through SnackbarData is an interface, there’s no way to provide a different implementation to give to the SnackbarHost). There’s also the positioning on screen as well, which i need to be at the top and not the bottom.
a
You can just place the
SnackbarHost
at the top of the screen.
m
@Albert Chang This doesn’t solve the problem of it being a closed data type. I mean SnackbarData is an interface, but the innards of it are pretty closed, and there’s no way to pass of a different type of stuctured data to the Snackbar to use in rendering it’s view.
a
What exactly do you want? There is even an overload of
Snackbar
that accept a composable so you can put anything into it.