IconLoadingButton constructor

const IconLoadingButton({
  1. Key? key,
  2. Color? color = Colors.blue,
  3. double height = 55,
  4. double width = 225,
  5. required Widget child,
  6. required IconData iconData,
  7. required VoidCallback? onPressed,
  8. double loaderSize = 50.0,
  9. double loaderStrokeWidth = 1.5,
  10. bool animateOnTap = true,
  11. Color valueColor = Colors.blue,
  12. double borderRadius = 25,
  13. double elevation = 5,
  14. Duration duration = const Duration(milliseconds: 500),
  15. Curve curve = Curves.easeInOutCirc,
  16. Color? errorColor = Colors.redAccent,
  17. Color? successColor = Colors.green,
  18. Duration resetDuration = const Duration(seconds: 15),
  19. bool resetAfterDuration = false,
  20. IconData successIcon = Icons.check,
  21. IconData failedIcon = Icons.close,
  22. Curve completionCurve = Curves.elasticOut,
  23. Duration completionDuration = const Duration(milliseconds: 1000),
  24. Color? disabledColor,
  25. required IconButtonController controller,
  26. double spaceBetween = 10,
  27. Color iconColor = Colors.white,
})

Constructor

Implementation

const IconLoadingButton({
  Key? key,
  this.color = Colors.blue,
  this.height = 55,
  this.width = 225,
  required this.child,
  required this.iconData,
  required this.onPressed,
  this.loaderSize = 50.0,
  this.loaderStrokeWidth = 1.5,
  this.animateOnTap = true,
  this.valueColor = Colors.blue,
  this.borderRadius = 25,
  this.elevation = 5,
  this.duration = const Duration(milliseconds: 500),
  this.curve = Curves.easeInOutCirc,
  this.errorColor = Colors.redAccent,
  this.successColor = Colors.green,
  this.resetDuration = const Duration(seconds: 15),
  this.resetAfterDuration = false,
  this.successIcon = Icons.check,
  this.failedIcon = Icons.close,
  this.completionCurve = Curves.elasticOut,
  this.completionDuration = const Duration(milliseconds: 1000),
  this.disabledColor,
  required this.controller,
  this.spaceBetween = 10,
  this.iconColor = Colors.white,
}) : super(key: key);