AnimationComponentUtils class

动画组件工具类

Constructors

AnimationComponentUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createBounceAnimation({required Widget child, Duration duration = const Duration(milliseconds: 600), bool autoStart = true}) Widget
创建弹性动画组件
createFadeAnimation({required Widget child, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut, bool autoStart = true}) Widget
创建淡入动画组件
createScaleAnimation({required Widget child, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut, bool autoStart = true}) Widget
创建缩放动画组件
createSlideAnimation({required Widget child, required ComponentAnimationType slideType, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut, bool autoStart = true}) Widget
创建滑动动画组件