Hello, I need to check whether bottom sheet is dismissed or shown and have a code below for two cases. However, dismiss case is also triggered when user selects something and then bottom sheet closes. I don’t want my
At a minimum to handle the back button, you could use
BackHandler
Chris Fillmore
05/19/2022, 9:21 PM
Overall, using bottom sheet state to trigger behaviour sounds like a bad idea. Can you trigger things another way? Such as “user selects something”, to use your example?