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. Color? backgroundColor,
  9. Color? foregroundColor,
  10. Color? shadowColor,
  11. Color? splashColor,
  12. Color? disabledBackgroundColor,
  13. Color? disabledBorderColor,
  14. Color? disabledForegroundColor,
  15. Color? borderColor,
  16. double? elevation,
  17. double? borderRadius,
  18. double? width,
  19. double? height,
  20. double minHeight = 60.0,
  21. OutlinedBorder? shape,
  22. EdgeInsetsGeometry? padding,
  23. EdgeInsetsGeometry? margin,
  24. Gradient? backgroundGradient,
  25. Gradient? disabledBackgroundGradient,
  26. InteractiveInkFeatureFactory? splashFactory,
  27. MaterialTapTargetSize? tapTargetSize,
})

Creates a CustomActionButton with the given parameters.

Implementation

const CustomActionButton({
  super.key,
  required this.child,
  this.icon,
  this.iconSpacing = 8.0,
  this.buttonType,
  this.onPressed,
  this.onLongPress,
  this.backgroundColor,
  this.foregroundColor,
  this.shadowColor,
  this.splashColor,
  this.disabledBackgroundColor,
  this.disabledBorderColor,
  this.disabledForegroundColor,
  this.borderColor,
  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,
});