GFAnimation constructor
const
GFAnimation({
- Key? key,
- required Widget child,
- Duration? duration,
- Alignment? alignment,
- Curve? curve,
- GFAnimationType? type,
- double? width,
- double? height,
- Color? activeColor,
- Color? color,
- EdgeInsetsGeometry? padding,
- Alignment? activeAlignment,
- void onTap()?,
- EdgeInsetsGeometry? margin,
- Animation<
double> ? turnsAnimation, - Animation<
double> ? scaleAnimation, - AnimationController? controller,
- TextDirection? textDirection,
- Animation<
Offset> ? slidePosition, - TextStyle? style,
- TextAlign? textAlign,
- TextOverflow? textOverflow,
- int? maxLines,
- TextWidthBasis? textWidthBasis,
- double? fontSize,
- FontWeight? fontWeight,
- double? changedWidth,
- double? changedHeight,
- 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);