outline static method

ButtonStyle outline({
  1. double? radius,
  2. double? minimumSize,
  3. double? elevation,
  4. Color? background,
  5. double? height,
  6. double? width,
  7. Color? borderColor,
  8. double? borderWidth,
})

Implementation

static ButtonStyle outline(
    {double? radius,
    double? minimumSize,
    double? elevation,
    Color? background,
    double? height,
    double? width,
    Color? borderColor,
    double? borderWidth}) {
  return ElevatedButton.styleFrom(
    shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(radius ?? 20.0),
        side: BorderSide(
            color: borderColor ?? colorPrimary, width: borderWidth ?? 2)),
    minimumSize: Size(width ?? double.infinity, height ?? 40),
    backgroundColor: background ?? Colors.white,
    elevation: elevation,
  );
}