question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Idea] Navigating back from a bottom sheet should animate

See original GitHub issue

I 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:open
  • Created 2 years ago
  • Reactions:24
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
alfroid2kcommented, Aug 10, 2022

Are there any updates on this issue? any workaround?

3reactions
WonderCsabocommented, Sep 16, 2021

Thank you! And also thanks for the great library by the way. 🙏

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found