UiButton.outlined constructor
UiButton.outlined({})
Implementation
factory UiButton.outlined({
Key? key,
String? label,
Widget? icon,
required VoidCallback? onPressed,
Color? borderColor,
Color? foregroundColor,
double borderRadius = 6,
EdgeInsetsGeometry? padding,
TextStyle? labelStyle,
bool expand = false,
String? tooltip,
}) {
return UiButton._internal(
key: key,
label: label,
icon: icon,
onPressed: onPressed,
expand: expand,
tooltip: tooltip,
type: _UiButtonType.outlined,
borderColor: borderColor,
style: OutlinedButton.styleFrom(
side: BorderSide(color: borderColor ?? primary, width: 1.2),
foregroundColor: foregroundColor ?? borderColor ?? primary,
padding:
padding ?? const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(borderRadius),
),
textStyle: labelStyle ??
const TextStyle(fontSize: 15, fontWeight: FontWeight.w600),
),
);
}