ArgonButton constructor

const ArgonButton({
  1. Key? key,
  2. required double height,
  3. required double width,
  4. required Widget child,
  5. double minWidth = 0,
  6. Widget? loader,
  7. Duration animationDuration = const Duration(milliseconds: 450),
  8. Curve curve = Curves.easeInOutCirc,
  9. Curve reverseCurve = Curves.easeInOutCirc,
  10. dynamic onTap(
    1. Function startLoading,
    2. Function stopLoading,
    3. ArgonButtonState btnState
    )?,
  11. Color? color,
  12. Color? focusColor,
  13. Color? hoverColor,
  14. Color? highlightColor,
  15. Color? splashColor,
  16. Brightness? colorBrightness,
  17. double? elevation,
  18. double? focusElevation,
  19. double? hoverElevation,
  20. double? highlightElevation,
  21. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  22. double borderRadius = 0.0,
  23. Clip? clipBehavior = Clip.none,
  24. FocusNode? focusNode,
  25. MaterialTapTargetSize? materialTapTargetSize,
  26. bool roundLoadingShape = true,
  27. BorderSide borderSide = const BorderSide(color: Colors.transparent, width: 0),
  28. double? disabledElevation,
  29. Color? disabledColor,
  30. Color? disabledTextColor,
})

Implementation

const ArgonButton(
    {Key? key,
    required this.height,
    required this.width,
    required this.child,
    this.minWidth = 0,
    this.loader,
    this.animationDuration = const Duration(milliseconds: 450),
    this.curve = Curves.easeInOutCirc,
    this.reverseCurve = Curves.easeInOutCirc,
    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),
      super(key: key);