GFAnimation constructor

const GFAnimation({
  1. Key? key,
  2. required Widget child,
  3. Duration? duration,
  4. Alignment? alignment,
  5. Curve? curve,
  6. GFAnimationType? type,
  7. double? width,
  8. double? height,
  9. Color? activeColor,
  10. Color? color,
  11. EdgeInsetsGeometry? padding,
  12. Alignment? activeAlignment,
  13. void onTap()?,
  14. EdgeInsetsGeometry? margin,
  15. Animation<double>? turnsAnimation,
  16. Animation<double>? scaleAnimation,
  17. AnimationController? controller,
  18. TextDirection? textDirection,
  19. Animation<Offset>? slidePosition,
  20. TextStyle? style,
  21. TextAlign? textAlign,
  22. TextOverflow? textOverflow,
  23. int? maxLines,
  24. TextWidthBasis? textWidthBasis,
  25. double? fontSize,
  26. FontWeight? fontWeight,
  27. double? changedWidth,
  28. double? changedHeight,
  29. Duration? reverseDuration,
})

Wrap any widget with GFAnimation to animate your widget. see GFAnimationType for types of animations.

Implementation

const GFAnimation({
  Key? key,
  required this.child,
  this.duration,
  this.alignment,
  this.curve,
  this.type,
  this.width,
  this.height,
  this.activeColor,
  this.color,
  this.padding,
  this.activeAlignment,
  this.onTap,
  this.margin,
  this.turnsAnimation,
  this.scaleAnimation,
  this.controller,
  this.textDirection,
  this.slidePosition,
  this.style,
  this.textAlign,
  this.textOverflow,
  this.maxLines,
  this.textWidthBasis,
  this.fontSize,
  this.fontWeight,
  this.changedWidth,
  this.changedHeight,
  this.reverseDuration,
}) : super(key: key);