flutter_animate icon indicating copy to clipboard operation
flutter_animate copied to clipboard

Add additional presets

Open esDotDev opened this issue 2 years ago • 0 comments

Once issue #31 is finalized, it would be nice to add an initial layer of additional presets/variations using the architecture.

While there are unlimited tween behaviors one could think of, some common ones stand out at the top of the list: (inspired by https://pub.dev/packages/animate_do and https://animate.style/)

FadeInUp
FadeInDown
FadeInLeft
FadeInRight

FadeOutUp
FadeOutDown
FadeOutLeft
FadeOutRight

SlideInUp
SlideInDown
SlideInLeft
SlideInRight

SlideOutUp
SlideOutDown
SlideOutLeft
SlideOutRight

FlipInX
FlipInY
FlipOutX
FlipOutY

ZoomIn
ZoomOut

BounceIn
BounceOut

Notably, some of these are simple variations of existing effects (SlideDown or ZoomIn), while others are composed of multiple effects (FadeInDown). Ideally the new system supports composition, so FadeInDown uses FadeIn + SlideInDown rather than re-creating their logic.

This issue could be thought of as a first pass at the most obvious presets, and then other presets could be considered in the future. Mostly this can serve as dogfood for issue #31

esDotDev avatar Oct 28 '22 18:10 esDotDev