CustomActionButton.rounded constructor

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

Implementation

factory CustomActionButton.rounded({
  Key? key,
  VoidCallback? onPressed,
  required Widget child,
  Widget? icon,
  double iconSpacing = 8.0,
  bool disabled = false,
  bool isLoading = false,
  Widget? loadingIndicator,
  Color? backgroundColor,
  Color? foregroundColor,
  Color? shadowColor,
  Color? splashColor,
  Color? disabledBackgroundColor,
  Color? disabledBorderColor,
  Color? disabledForegroundColor,
  Color? borderColor,
  double borderWidth = 1.0,
  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,
    disabled: disabled,
    isLoading: isLoading,
    loadingIndicator: loadingIndicator,
    backgroundColor: backgroundColor,
    foregroundColor: foregroundColor,
    shadowColor: shadowColor,
    splashColor: splashColor,
    disabledBackgroundColor: disabledBackgroundColor,
    disabledBorderColor: disabledBorderColor,
    disabledForegroundColor: disabledForegroundColor,
    borderColor: borderColor,
    borderWidth: borderWidth,
    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,
  );
}