ghost static method
ButtonStyle
ghost({
- Color? foreground,
- double radius = 12,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14),
Minimal ghost-style button (transparent)
Implementation
static ButtonStyle ghost({
Color? foreground,
double radius = 12,
EdgeInsetsGeometry padding = const EdgeInsets.symmetric(
horizontal: 20,
vertical: 14,
),
}) {
return TextButton.styleFrom(
foregroundColor: foreground ?? Colors.grey.shade800,
padding: padding,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(radius),
),
);
}