Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide and show the whole bottom sheet with animation #17

Open
paricleu opened this issue Sep 26, 2022 · 1 comment
Open

Hide and show the whole bottom sheet with animation #17

paricleu opened this issue Sep 26, 2022 · 1 comment

Comments

@paricleu
Copy link
Contributor

It would be great to be able to animate hiding/showing the whole bottom sheet so not even the collapsed view is showing.
It's probably possible to get something to work with the listener but it would be nice to have something like this build in.
This is the the last thing that's stopping me from migrating from my own fork of sliding_up_panel. Good job with this package 👍🏼

@mhrst
Copy link
Owner

mhrst commented Oct 5, 2022

Thanks! I think that would be a solid feature. I'll work on adding it.

Here's what I'm thinking:

  • BottomSheetBarController additions:
    • hide({Duration? duration = Duration(milliseconds: 250, Curve? curve = Curves.easeIn}) -- Animates the bottom-sheet-bar out of view
    • show({Duration? duration = Duration(milliseconds: 250, Curve? curve = Curves.easeIn})-- Animates the bottom-sheet-bar into view
  • BottomSheetBarController.expand and BottomSheetBarController.collapse will animate from the last hidden/shown state.

I'm not sure if 250ms and easeIn are the right defaults, and I'll maybe adjust those but that's my starting point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants