AnimationWidget constructor
const
AnimationWidget({
- Widget? child,
- AnimationType type = AnimationType.normal,
- Duration duration = const Duration(milliseconds: 600),
- Duration delay = Duration.zero,
- Curve curve = Curves.fastOutSlowIn,
- double angle = 0,
- double scale = 1,
- double opacity = 1,
- bool reversed = false,
- Widget builder(
- BuildContext context,
- double animationValue,
- Widget? child
- Offset offset = const Offset(0, 0),
- Alignment scaleAlignment = Alignment.center,
- Alignment rotationAlignment = Alignment.center,
- bool developerMode = false,
- Key? key,
Implementation
const AnimationWidget({
this.child,
this.type = AnimationType.normal,
this.duration = const Duration(milliseconds: 600),
this.delay = Duration.zero,
this.curve = Curves.fastOutSlowIn,
this.angle = 0,
this.scale = 1,
this.opacity = 1,
this.reversed = false,
this.builder,
this.offset = const Offset(0, 0),
this.scaleAlignment = Alignment.center,
this.rotationAlignment = Alignment.center,
this.developerMode = false,
Key? key,
}) : assert(child != null || builder != null),
super(key: key);