CustomActionButton.flat constructor

CustomActionButton.flat({
  1. required void onPressed()?,
  2. required Widget child,
  3. Color? backgroundColor,
  4. Color? splashColor,
  5. Color? borderColor,
  6. double borderRadius = 10.0,
  7. InteractiveInkFeatureFactory? splashFactory,
  8. double? width,
  9. double? height,
  10. EdgeInsetsGeometry? margin,
  11. EdgeInsetsGeometry? padding,
})

Implementation

factory CustomActionButton.flat({
  required void Function()? onPressed,
  required Widget child,
  Color? backgroundColor,
  Color? splashColor,
  Color? borderColor,
  double borderRadius = 10.0,
  InteractiveInkFeatureFactory? splashFactory,
  double? width,
  double? height,
  EdgeInsetsGeometry? margin,
  EdgeInsetsGeometry? padding,
}) {
  return CustomActionButton(
    onPressed: onPressed,
    backgroundColor: backgroundColor ?? Colors.transparent,
    splashFactory: splashFactory ?? InkRipple.splashFactory,
    splashColor: splashColor ?? Colors.grey.withOpacity(0.2),
    borderColor: borderColor ?? Colors.transparent,
    borderRadius: borderRadius,
    width: width,
    height: height,
    margin: margin,
    padding: padding,
    child: child,
  );
}