ButtonStyle.filled constructor
const
ButtonStyle.filled({
- Color? color,
- SheetSeverity? severity,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Clip? clipBehavior,
- bool? overlayDisabled,
- Color? overlayColor,
- Color? shadowColor,
- Color? surfaceTint,
- double? elevation,
- TextStyle? foregroundStyle,
- Color? foregroundColor,
- double? foregroundOpacity,
- int? foregroundAlpha,
- double? foregroundSpacing,
- bool? foregroundLoosen,
- bool? foregroundExpanded,
- CrossAxisAlignment? foregroundAlign,
- MainAxisAlignment? foregroundJustify,
- double? backgroundOpacity,
- int? backgroundAlpha,
- double? borderOpacity,
- int? borderAlpha,
- double? borderWidth,
- BorderRadius? borderRadius,
- BorderStyle? borderStyle,
- BoxShape? shape,
- Color? iconColor,
- double? iconOpacity,
- double? iconSize,
Create a ButtonStyle with default value for filled style.
Implementation
const ButtonStyle.filled({
Color? color,
super.severity,
super.width,
super.height,
super.margin,
super.padding,
super.clipBehavior,
super.overlayDisabled,
super.overlayColor,
super.shadowColor,
super.surfaceTint,
super.elevation,
super.foregroundStyle,
super.foregroundColor,
super.foregroundOpacity,
super.foregroundAlpha,
super.foregroundSpacing,
super.foregroundLoosen,
super.foregroundExpanded,
super.foregroundAlign,
super.foregroundJustify,
super.backgroundOpacity,
super.backgroundAlpha,
super.borderOpacity,
super.borderAlpha,
super.borderWidth,
super.borderRadius,
super.borderStyle,
super.shape,
super.iconColor,
super.iconOpacity,
super.iconSize,
}) : super(
variant: ButtonVariant.filled,
backgroundColor: color,
borderColor: color,
);