outlineButtonStyle function
ButtonStyle
outlineButtonStyle(
- Palette sc, {
- TextStyle? textStyle,
- double borderWidth = 2,
- OutlinedBorder? shape,
- 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),
);
}