CustomButtonAnimation constructor
const
CustomButtonAnimation({
- required double height,
- required double width,
- double minWidth = 0,
- Widget? loader,
- Duration animationDuration = const Duration(milliseconds: 450),
- Curve curve = Curves.easeInOutCirc,
- Curve reverseCurve = Curves.easeInOutCirc,
- required Widget child,
- required dynamic onTap(),
- Color? color,
- Brightness? colorBrightness,
- double? elevation,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
- double borderRadius = 0.0,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- MaterialTapTargetSize? materialTapTargetSize,
- bool roundLoadingShape = true,
- BorderSide borderSide = const BorderSide(color: Colors.transparent, width: 0),
- double? disabledElevation,
- Color? disabledColor,
- Color? disabledTextColor,
- Key? key,
Implementation
const CustomButtonAnimation(
{required this.height,
required this.width,
this.minWidth: 0,
this.loader,
this.animationDuration: const Duration(milliseconds: 450),
this.curve: Curves.easeInOutCirc,
this.reverseCurve: Curves.easeInOutCirc,
required this.child,
required this.onTap,
this.color,
// this.focusColor,
// this.hoverColor,
// this.highlightColor,
// this.splashColor,
this.colorBrightness,
this.elevation,
// this.focusElevation,
// this.hoverElevation,
// this.highlightElevation,
this.padding: const EdgeInsets.all(0),
this.borderRadius: 0.0,
this.clipBehavior: Clip.none,
this.focusNode,
this.materialTapTargetSize,
this.roundLoadingShape: true,
this.borderSide: const BorderSide(color: Colors.transparent, width: 0),
this.disabledElevation,
this.disabledColor,
this.disabledTextColor,
Key? key,
}):assert(elevation == null || elevation >= 0.0),
assert(disabledElevation == null || disabledElevation >= 0.0),super(key: key);