How can I close drawer on back pressed?
# compose
f
How can I close drawer on back pressed?
stackoverflow 2
google 2
h
There is new OnBackPressedDispatcher https://developer.android.com/reference/androidx/activity/OnBackPressedDispatcher . I believe it can also work with Compose if you combine it with Ambients. Also you might wanna check out this post https://proandroiddev.com/implementing-back-navigation-with-jetpack-compose-550b544e4205