CustomActionButton.rounded constructor

CustomActionButton.rounded({
  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? width,
  15. double? height,
  16. double minHeight = 60.0,
  17. EdgeInsetsGeometry? padding,
  18. EdgeInsetsGeometry? margin,
  19. double elevation = 2.0,
  20. Gradient? backgroundGradient,
  21. Gradient? disabledBackgroundGradient,
  22. InteractiveInkFeatureFactory? splashFactory,
  23. MaterialTapTargetSize? tapTargetSize,
})

Creates a fully rounded button.

Implementation

factory CustomActionButton.rounded({
  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? width,
  double? height,
  double minHeight = 60.0,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  double elevation = 2.0,
  Gradient? backgroundGradient,
  Gradient? disabledBackgroundGradient,
  InteractiveInkFeatureFactory? splashFactory,
  MaterialTapTargetSize? tapTargetSize,
}) {
  return CustomActionButton(
    key: key,
    buttonType: ButtonType.rounded,
    onPressed: onPressed,
    backgroundColor: backgroundColor,
    foregroundColor: foregroundColor,
    shadowColor: shadowColor,
    splashColor: splashColor,
    disabledBackgroundColor: disabledBackgroundColor,
    disabledBorderColor: disabledBorderColor,
    disabledForegroundColor: disabledForegroundColor,
    borderColor: borderColor,
    elevation: elevation,
    width: width,
    height: height,
    minHeight: minHeight,
    padding: padding,
    margin: margin,
    backgroundGradient: backgroundGradient,
    disabledBackgroundGradient: disabledBackgroundGradient,
    splashFactory: splashFactory,
    icon: icon,
    iconSpacing: iconSpacing,
    tapTargetSize: tapTargetSize,
    child: child,
  );
}