CustomActionButton constructor

const CustomActionButton({
  1. Key? key,
  2. required Widget child,
  3. Widget? icon,
  4. double iconSpacing = 8.0,
  5. ButtonType? buttonType,
  6. VoidCallback? onPressed,
  7. VoidCallback? onLongPress,
  8. bool disabled = false,
  9. bool isLoading = false,
  10. Widget? loadingIndicator,
  11. Color? backgroundColor,
  12. Color? foregroundColor,
  13. Color? shadowColor,
  14. Color? splashColor,
  15. Color? disabledBackgroundColor,
  16. Color? disabledBorderColor,
  17. Color? disabledForegroundColor,
  18. Color? borderColor,
  19. double borderWidth = 1.0,
  20. double? elevation,
  21. double? borderRadius,
  22. double? width,
  23. double? height,
  24. double minHeight = 60.0,
  25. OutlinedBorder? shape,
  26. EdgeInsetsGeometry? padding,
  27. EdgeInsetsGeometry? margin,
  28. Gradient? backgroundGradient,
  29. Gradient? disabledBackgroundGradient,
  30. InteractiveInkFeatureFactory? splashFactory,
  31. MaterialTapTargetSize? tapTargetSize,
})

Implementation

const CustomActionButton({
  super.key,
  required this.child,
  this.icon,
  this.iconSpacing = 8.0,
  this.buttonType,
  this.onPressed,
  this.onLongPress,
  this.disabled = false,
  this.isLoading = false,
  this.loadingIndicator,
  this.backgroundColor,
  this.foregroundColor,
  this.shadowColor,
  this.splashColor,
  this.disabledBackgroundColor,
  this.disabledBorderColor,
  this.disabledForegroundColor,
  this.borderColor,
  this.borderWidth = 1.0,
  this.elevation,
  this.borderRadius,
  this.width,
  this.height,
  this.minHeight = 60.0,
  this.shape,
  this.padding,
  this.margin,
  this.backgroundGradient,
  this.disabledBackgroundGradient,
  this.splashFactory,
  this.tapTargetSize,
});