CustomActionButton.flat constructor

CustomActionButton.flat({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required Widget child,
  4. Widget? icon,
  5. double iconSpacing = 8.0,
  6. Color? backgroundColor,
  7. Color? foregroundColor,
  8. Color? shadowColor,
  9. Color? splashColor,
  10. Color? disabledBackgroundColor,
  11. Color? disabledBorderColor,
  12. Color? disabledForegroundColor,
  13. Color? borderColor,
  14. double borderRadius = 8.0,
  15. BorderSide? side,
  16. OutlinedBorder? shape,
  17. double? width,
  18. double? height,
  19. double minHeight = 60.0,
  20. EdgeInsetsGeometry? padding,
  21. EdgeInsetsGeometry? margin,
  22. Gradient? backgroundGradient,
  23. Gradient? disabledBackgroundGradient,
  24. InteractiveInkFeatureFactory? splashFactory,
  25. MaterialTapTargetSize? tapTargetSize,
})

Creates a flat button.

Implementation

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