SinglePressButton.rounded constructor

SinglePressButton.rounded({
  1. Key? key,
  2. required Widget child,
  3. Future<void> onPressed()?,
  4. EdgeInsetsGeometry? padding,
  5. EdgeInsetsGeometry? margin,
  6. Color? backgroundColor,
  7. Gradient? backgroundGradient,
  8. Gradient? disabledBackgroundGradient,
  9. Color? disabledBackgroundColor,
  10. Color? foregroundColor,
  11. Color? disabledForegroundColor,
  12. Color? borderColor,
  13. Color? disabledBorderColor,
  14. double borderRadius = 8.0,
  15. TextStyle? textStyle,
  16. double? elevation,
  17. Color? shadowColor,
  18. OutlinedBorder? shape,
  19. bool showLoadingIndicator = false,
  20. Color? loadingIndicatorColor,
  21. double? width,
  22. double? height,
  23. VoidCallback? onStartProcessing,
  24. VoidCallback? onFinishProcessing,
  25. void onError(
    1. Object error
    )?,
})

Factory for the rounded version (uses CustomActionButton.rounded)

Implementation

factory SinglePressButton.rounded({
  Key? key,
  required Widget child,
  Future<void> Function()? onPressed,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  Color? backgroundColor,
  Gradient? backgroundGradient,
  Gradient? disabledBackgroundGradient,
  Color? disabledBackgroundColor,
  Color? foregroundColor,
  Color? disabledForegroundColor,
  Color? borderColor,
  Color? disabledBorderColor,
  double borderRadius = 8.0,
  TextStyle? textStyle,
  double? elevation,
  Color? shadowColor,
  OutlinedBorder? shape,
  bool showLoadingIndicator = false,
  Color? loadingIndicatorColor,
  double? width,
  double? height,
  VoidCallback? onStartProcessing,
  VoidCallback? onFinishProcessing,
  void Function(Object error)? onError,
}) {
  return SinglePressButton(
    key: key,
    type: SinglePressButtonType.rounded,
    onPressed: onPressed,
    padding: padding,
    margin: margin,
    backgroundColor: backgroundColor,
    backgroundGradient: backgroundGradient,
    disabledBackgroundGradient: disabledBackgroundGradient,
    disabledBackgroundColor: disabledBackgroundColor,
    foregroundColor: foregroundColor,
    disabledForegroundColor: disabledForegroundColor,
    borderColor: borderColor,
    disabledBorderColor: disabledBorderColor,
    borderRadius: borderRadius,
    textStyle: textStyle,
    elevation: elevation,
    shadowColor: shadowColor,
    shape: shape,
    showLoadingIndicator: showLoadingIndicator,
    loadingIndicatorColor: loadingIndicatorColor,
    width: width,
    height: height,
    onStartProcessing: onStartProcessing,
    onFinishProcessing: onFinishProcessing,
    onError: onError,
    child: child,
  );
}