ArgonButton constructor
ArgonButton({
- 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,
- dynamic onTap(
- Function startLoading,
- Function stopLoading,
- ButtonState btnState
- Color? color,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- Brightness? colorBrightness,
- double? elevation,
- double? focusElevation,
- double? hoverElevation,
- double? highlightElevation,
- 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,
Implementation
ArgonButton(
{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,
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})
: assert(elevation == null || elevation >= 0.0),
assert(focusElevation == null || focusElevation >= 0.0),
assert(hoverElevation == null || hoverElevation >= 0.0),
assert(highlightElevation == null || highlightElevation >= 0.0),
assert(disabledElevation == null || disabledElevation >= 0.0),
assert(clipBehavior != null);