CustomActionButton.minimal constructor

CustomActionButton.minimal({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required Widget child,
  4. Widget? icon,
  5. double iconSpacing = 8.0,
  6. Color? borderColor,
  7. Color? foregroundColor,
  8. Color? disabledBorderColor,
  9. Color? disabledForegroundColor,
  10. Color? shadowColor,
  11. double? width,
  12. double? height,
  13. double minHeight = 60.0,
  14. OutlinedBorder? shape,
  15. EdgeInsetsGeometry? padding,
  16. Gradient? disabledBackgroundGradient,
  17. EdgeInsetsGeometry? margin,
  18. MaterialTapTargetSize? tapTargetSize,
})

Creates a minimal button.

Implementation

factory CustomActionButton.minimal({
  Key? key,
  required VoidCallback? onPressed,
  required Widget child,
  Widget? icon,
  double iconSpacing = 8.0,
  Color? borderColor,
  Color? foregroundColor,
  Color? disabledBorderColor,
  Color? disabledForegroundColor,
  Color? shadowColor,
  double? width,
  double? height,
  double minHeight = 60.0,
  OutlinedBorder? shape,
  EdgeInsetsGeometry? padding,
  Gradient? disabledBackgroundGradient,
  EdgeInsetsGeometry? margin,
  MaterialTapTargetSize? tapTargetSize,
}) {
  return CustomActionButton(
    key: key,
    buttonType: ButtonType.minimal,
    onPressed: onPressed,
    foregroundColor: foregroundColor,
    disabledBorderColor: disabledBorderColor,
    disabledForegroundColor: disabledForegroundColor,
    borderColor: borderColor,
    shadowColor: shadowColor,
    width: width,
    height: height,
    minHeight: minHeight,
    shape: shape,
    padding: padding,
    margin: margin,
    disabledBackgroundGradient: disabledBackgroundGradient,
    icon: icon,
    iconSpacing: iconSpacing,
    tapTargetSize: tapTargetSize,
    child: child,
  );
}