Closed PavloZoria closed 2 months ago
Thank you for the contribution but unfortunately Navigation Material has been deprecated in Accompanist as the functionality is now available in the main Compose libraries.
Because of this I will have to close out this PR as we won't be making any further changes here.
@bentrengrove I'd like your thoughts on two options:
Implemented DismissDispatcher: Intercepting BottomSheet Dismissal
I've implemented DismissDispatcher to provide more control over user-initiated dismissal of BottomSheets. This functionality mirrors the behavior of BackHandler for handling back button presses.
What can you intercept?
How to use DismissDispatcher:
Code Example:
Important Note:
This approach does not intercept dismissal initiated by the NavController. This allows you to easily close the BottomSheet programmatically using the NavController if needed.
Attachments
https://github.com/google/accompanist/assets/38030130/2f7bd0d6-39e7-44d7-8778-b77da91c2613