FastAnimate constructor

const FastAnimate({
  1. Key? key,
  2. required FastAnimateType type,
  3. required Widget child,
  4. Duration delay = const Duration(milliseconds: 0),
  5. Duration duration = const Duration(milliseconds: 200),
  6. bool infinite = false,
  7. bool animate = true,
  8. Curve curve = Curves.easeInOut,
  9. void onFinish(
    1. AnimateDoDirection
    )?,
  10. void controller(
    1. AnimationController
    )?,
  11. 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,
});