outlineButtonStyle function

ButtonStyle outlineButtonStyle(
  1. Palette sc, {
  2. TextStyle? textStyle,
  3. double borderWidth = 2,
  4. OutlinedBorder? shape,
  5. required double scale,
})

Outlined button with transparent background and border.

Implementation

ButtonStyle outlineButtonStyle(
  Palette sc, {
  TextStyle? textStyle,
  double borderWidth = 2,
  OutlinedBorder? shape,
  required double scale,
}) {
  final base = backgroundButtonStyle(
    sc,
    showBorder: true,
    textStyle: textStyle,
    borderWidth: borderWidth,
    shape: shape,
    scale: scale,
  );
  return base.copyWith(
    backgroundColor: const WidgetStatePropertyAll(Colors.transparent),
  );
}