[Idea] Navigating back from a bottom sheet should animate
See original GitHub issueI am not sure if this is a bug or not, i open it as a feature request just to be sure. 😃
Current behaviour:
Currently when you close a bottom sheet using navController.popBackStack()
, the bottom sheet immediately disappears. In the code, i see that snapTo()
is used, and also the sheet is replaced with an empty view.
Desired behaviour:
When navController.popBackStack()
is called, the sheet should disappear with an animation, just like when we call animateTo()
.
I understand that we could just call animateTo()
instead of navigation, however that state is not generally available, and should not be used in VM logic anyway.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:24
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Android Bottom Sheet Behavior and Animated Button on Top ...
STATE_COLLAPSED : The bottom sheet is visible but only showing its peek height. This state is usually the 'resting position' of a Bottom...
Read more >Implementing transitions in a BottomSheet - animation
The height itself can be animated by creating an AnimationController with begin and end set to values you want the height be and...
Read more >Introducing Navigation-Material 🎨️ | by Jossi Wolf - Medium
Navigating. You can navigate to bottom sheets just like any other destination: You can navigate away from bottom sheet destinations as usual, ...
Read more >Animated Bottom Sheet in NativeScript Tutorial - YouTube
... in this NativeScript tutorial I create an animated bottom sheet that works on iOS and Android. I use the multiple frames concept...
Read more >Animations continued - Building Shrine in Compose: Part 4
Your browser can 't play this video. ... He covers how to create and animate an expanding BottomSheet and how to integrate it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Are there any updates on this issue? any workaround?
Thank you! And also thanks for the great library by the way. 🙏