Flutter Animation Set
Simplified Flutter stagger animation.To drive the Flutter stagger animation through a timeline in the form of an animation configuration.You can
- Uses the existing Animation Widget of
Flutter Animation Set
- Use
Flutter Animation Set
to create a new Animation Widget - Contribute your Flutter Animation Set Widget
- Watch All of the
Curves
of Flutter in example
? Installing
⚡ Use Animation Set Widget
1、import
2、use
3、road map
transition_animations
![]() YYRotatingPlane ✅ |
![]() YYDoubleBounce ✅ |
![]() YYWave ✅ |
![]() YYWanderingCubes ✅ |
![]() YYFadingFour ✅ |
![]() YYFadingCube ✅ |
![]() YYPulse ✅ |
![]() YYThreeBounce ✅ |
![]() YYThreeLine ✅ |
![]() YYCubeGrid ✅ |
![]() YYRotatingCircle ✅ |
![]() YYPumpingHeart ✅ |
![]() YYRipple ✅ |
![]() YYRotateLine ✅ |
![]() YYCubeFadeIn ✅ |
![]() YYBlinkGrid ✅ |
behavior_animations
![]() YYFadeButton ✅ |
![]() YYSingleLike ✅ |
![]() YYLove ✅ |
![]() YYSpringMenu ✅ |
![]() YYFoldMenu ✅ |
4、thanks
⚡ Create Animation Set Widget By YourSelf
1、import
2、use widget
AnimatorSet Supported properties
Property | Mean | Default |
---|---|---|
child | The component that performs the animation | not have |
animatorSet | Collection of animation | not have |
animationType | Controls the type of animation execution | AnimationType.repeat |
debug | The output log | false |
The properties of the animationType
Property | Mean |
---|---|
repeat | Repeat animation |
reverse | Rewind animation |
once | One play animation |
3、use AnimatorSet api
about animation widget
Widget | Mean | Description |
---|---|---|
W | width | Control the change of width. If it is scaled up, SX is recommended instead |
H | height | Control the change of height. If it is scaled up, SY is recommended instead |
P | padding | Control padding changes |
O | opacity | Control opacity changes |
SX | scaleX | Scale the X-axis with the midpoint |
SY | scaleY | Scale the Y-axis with the midpoint |
RX | rotateX | Rotate the X-axis with the midpoint |
RY | rotateY | Rotate the Y-axis with the midpoint |
RZ | rotateZ | Rotate the Z-axis with the midpoint |
TX | transitionX | Translate the Z-axis with the midpoint |
TY | transitionY | Translate the Y-axis with the midpoint |
C | color | Control background color changes |
B | border | Control background border changes |
about support widget
Widget | Mean | Description |
---|---|---|
Delay | delay timeLine | Extend the timeline to wait |
Serial | combine animation | Through the combination of animation, to achieve the effect of playing together |
⚡ For Example
1、create timeLine

- This figure shows that the core components of the animation are made according to the timeLine
- In the process of execution, there are 6 animations simultaneously, and the total animation duration is 900ms
- ScaleY components are used to scale up and down in order to make each rectangle have a wave effect
- Drag the timeline with the Delay component to reach the animation duration of 900ms
2、build animatorSet
Assemble our animation component using the diagram above, which has the following properties
- from:Animation initial value
- to:End of animation value
- duration:Animation time
- delay:The delay in actually executing the animation
- curve:Animation interpolator
The object that the animation executes is Container
rectangle
3、convert to code
4、done

More
1、Combination of animation
The scaling effect requires scaling both the X and Y axes, uses the Serial Widget
done

2、Time-lapse animations
Deal with the delay attribute when you actually do the animation
done

3、Reverse animation
After the animation can be played, set animationtype.reverse
through the animationType property, making the animation play back
done
