# compose

Satyam G

05/05/2022, 11:57 AM
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


05/05/2022, 12:19 PM
Check scaffold's way of handling the snackbar, it should be enough to guide you in the right direction

Satyam G

05/05/2022, 12:21 PM
Can we create custom snack bar with it alignment defined as a parameter to any compose by following this approach

Colton Idle

05/05/2022, 5:39 PM
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.