CustomActionButton.minimal constructor

CustomActionButton.minimal({
  1. required VoidCallback? onPressed,
  2. required Widget child,
  3. Color? foregroundColor,
  4. Color? disabledForegroundColor,
  5. Color? borderColor,
  6. double? width,
  7. double? height,
  8. OutlinedBorder? shape,
  9. EdgeInsetsGeometry? padding,
  10. EdgeInsetsGeometry? margin,
})

Creates a minimal button.

The onPressed and child parameters are required.

Implementation

factory CustomActionButton.minimal({
  required VoidCallback? onPressed,
  required Widget child,
  Color? foregroundColor,
  Color? disabledForegroundColor,
  Color? borderColor,
  double? width,
  double? height,
  OutlinedBorder? shape,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
}) {
  return CustomActionButton(
    buttonType: ButtonType.minimal,
    onPressed: onPressed,
    foregroundColor: foregroundColor,
    disabledBorderColor: disabledForegroundColor,
    borderColor: borderColor,
    width: width,
    height: height,
    shape: shape,
    padding: padding,
    margin: margin,
    child: child,
  );
}