ButtonAnimation constructor
const
ButtonAnimation({
- Key? key,
- required Widget child,
- Duration? borderDuration,
- Duration? shimmerDuration,
- double? borderWidth,
- Color? borderColor,
- Color? snakeColor,
- required VoidCallback onTap,
- double? borderRadius,
- Angle? shimmerAngle = Angle.zero,
- double? endAngleBorder,
- bool? isShimmer = true,
- bool? isBorder = true,
- Color? colorShadow,
- Color? isOnClickColorShadow,
- Color? colorCircularProgress,
- bool? isEnable = true,
- bool? isLoading = false,
- Color? buttonColor = Colors.amber,
Implementation
const ButtonAnimation({
Key? key,
required this.child,
this.borderDuration,
this.shimmerDuration,
this.borderWidth,
this.borderColor,
this.snakeColor,
required this.onTap,
this.borderRadius,
this.shimmerAngle = Angle.zero,
this.endAngleBorder,
this.isShimmer = true,
this.isBorder = true,
this.colorShadow,
this.isOnClickColorShadow,
this.colorCircularProgress,
this.isEnable = true,
this.isLoading = false,
this.buttonColor = Colors.amber,
}) : super(key: key);