Simon Wanbua
09/07/2022, 9:30 AMStylianos Gakis
09/07/2022, 10:23 AMStylianos Gakis
09/07/2022, 11:18 AM.windowInsetsPadding(WindowInsets.safeDrawing.only(WindowInsetsSides.Horizontal + WindowInsetsSides.Bottom))
to your snackbar? I believe if the Scaffold is in fact showing a bottom tab it should have consumed them therefore they should be a no-op for the snackbar, and if the scaffold has not consumed them (in the screen you’re showing here) since there is no bottom bar then the windowInsetsPadding
should add the necessary padding.
I’d give this a trySimon Wanbua
09/07/2022, 12:26 PMStylianos Gakis
09/07/2022, 12:31 PM.consumedWindowInsets(WindowInsets.statusBars.only(WindowInsetsSides.Bottom))
manually yourself in that case so that you tell the insets that “I’ve already applied these, do not apply them again later when someone asks for it”.
It’s getting a bit hard to keep all these things in my head now without looking at the code itself, but I hope this at least gives you an idea of what I am going for with this suggestion.