jamesblasco / modal_bottom_sheet

Flutter | Create advanced modal bottom sheets. Material, Cupertino or your own style
https://pub.dev/packages/modal_bottom_sheet
MIT License
1.85k stars 466 forks source link

Play the reversed animationCurve when bottom sheet is closing #195

Open jseminck opened 3 years ago

jseminck commented 3 years ago

Hi, I'd like to request a feature to play the reverse of the animationCurve when the bottom sheet is closing. I'm more than happy to help to implement the feature with some guidance, if possible. It would be awesome to understand what the API for it could be and some directions where to look.

For example we can add new property reverseAnimationCurve and if it is set, play that curve on close, if not keep using animationCurve.

sylvestrevgenhiveon commented 1 year ago

@jamesblasco Also interesting.

nivisi commented 1 year ago

@jamesblasco this is a very important feature, actually. Closing the sheet doesn't feel natural without this.

reyhaan commented 1 month ago

I managed something here in this draft PR: https://github.com/jamesblasco/modal_bottom_sheet/pull/417 , its not perfect but it's still far better then what my previous animation looked like.