ExButtonLoading constructor

const ExButtonLoading({
  1. required double height,
  2. required double width,
  3. required Widget child,
  4. Key? key,
  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. ExButtonState btnState
    )?,
  11. Color? color,
  12. Color? borderColor,
  13. double? elevation,
  14. EdgeInsetsGeometry padding = EdgeInsets.zero,
  15. double borderRadius = 90,
  16. Clip clipBehavior = Clip.none,
  17. FocusNode? focusNode,
  18. MaterialTapTargetSize? materialTapTargetSize,
  19. bool roundLoadingShape = true,
  20. BorderSide borderSide = const BorderSide(color: Colors.transparent, width: 0),
  21. double? disabledElevation,
  22. Color? disabledColor,
  23. Color? disabledTextColor,
  24. bool animate = false,
  25. ExButtonType type = ExButtonType.elevated,
})

Implementation

const ExButtonLoading({
  required this.height,
  required this.width,
  required this.child,
  super.key,
  this.minWidth = 0,
  this.loader,
  this.animationDuration = const Duration(milliseconds: 450),
  this.curve = Curves.easeInOutCirc,
  this.reverseCurve = Curves.easeInOutCirc,
  this.onTap,
  this.color,
  this.borderColor,
  this.elevation,
  this.padding = EdgeInsets.zero,
  this.borderRadius = 90,
  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,
  this.animate = false,
  this.type = ExButtonType.elevated,
});