FastAnimate constructor
const
FastAnimate({
- Key? key,
- required FastAnimateType type,
- required Widget child,
- Duration delay = const Duration(milliseconds: 0),
- Duration duration = const Duration(milliseconds: 200),
- bool infinite = false,
- bool animate = true,
- Curve curve = Curves.easeInOut,
- void onFinish(
- AnimateDoDirection
- void controller()?,
- bool manualTrigger = false,
use this widget to animate your widgets
example:
FastAnimate(
type: FastAnimateType.fadeInDownBig,
duration: const Duration(seconds: 1),
child: Text('Text H1', style: context.H1),
),
Implementation
const FastAnimate({
super.key,
required this.type,
required this.child,
this.delay = const Duration(milliseconds: 0),
this.duration = const Duration(milliseconds: 200),
this.infinite = false,
this.animate = true,
this.curve = Curves.easeInOut,
this.onFinish,
this.controller,
this.manualTrigger = false,
});