How can we display a custom small view like this o...
# compose
s
How can we display a custom small view like this over any composable without adding it to Root Composable and controlling it's visibility. The use case is like on any screen if any error occurs this should be displayed and this view (composable) should not be included in every composable. How to achieve this ?? Any help will e appreciated
f
Check scaffold's way of handling the snackbar, it should be enough to guide you in the right direction
s
Can we create custom snack bar with it alignment defined as a parameter to any compose by following this approach
c
I would just follow snackbar+scaffold route and have this be in your root composable. Not sure about your custom snack bar alignment question though.