LoadingButton constructor

const LoadingButton({
  1. Key? key,
  2. required double height,
  3. required double width,
  4. double minWidth = 0,
  5. Widget? loader,
  6. Duration animationDuration = const Duration(milliseconds: 450),
  7. Curve curve = Curves.easeInOutCirc,
  8. Curve reverseCurve = Curves.easeInOutCirc,
  9. required Widget child,
  10. dynamic onTap(
    1. Function startLoading,
    2. Function stopLoading,
    3. ButtonState btnState
    )?,
  11. Color? color,
  12. double? elevation,
  13. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  14. double borderRadius = 0.0,
  15. Clip clipBehavior = Clip.none,
  16. FocusNode? focusNode,
  17. MaterialTapTargetSize? materialTapTargetSize,
  18. bool roundLoadingShape = true,
  19. BorderSide borderSide = const BorderSide(color: Colors.transparent, width: 0),
  20. double? disabledElevation,
  21. Color? disabledColor,
  22. Color? disabledTextColor,
  23. bool animate = false,
})

Implementation

const LoadingButton({
  super.key,
  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.elevation,
  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,
  this.animate = false,
});