MButtonStyle constructor
const
MButtonStyle({
- MaterialStateProperty<
TextStyle?> ? textStyle, - MaterialStateProperty<
Color?> ? backgroundColor, - MaterialStateProperty<
Color?> ? foregroundColor, - MaterialStateProperty<
Color?> ? overlayColor, - MaterialStateProperty<
Color?> ? shadowColor, - MaterialStateProperty<
Color?> ? surfaceTintColor, - MaterialStateProperty<
double?> ? elevation, - MaterialStateProperty<
EdgeInsetsGeometry?> ? padding, - MaterialStateProperty<
Size?> ? minimumSize, - MaterialStateProperty<
Size?> ? fixedSize, - MaterialStateProperty<
Size?> ? maximumSize, - MaterialStateProperty<
Color?> ? iconColor, - MaterialStateProperty<
double?> ? iconSize, - MaterialStateProperty<
BorderSide?> ? side, - MaterialStateProperty<
OutlinedBorder?> ? shape, - MaterialStateProperty<
MouseCursor?> ? mouseCursor, - VisualDensity? visualDensity,
- MaterialTapTargetSize? tapTargetSize,
- Duration? animationDuration,
- bool? enableFeedback,
- AlignmentGeometry? alignment,
- InteractiveInkFeatureFactory? splashFactory,
- bool? clearPadding,
- bool? clearOverlay,
- bool? clearSplash,
Implementation
const MButtonStyle({
super.textStyle,
super.backgroundColor,
super.foregroundColor,
MaterialStateProperty<Color?>? overlayColor,
super.shadowColor,
super.surfaceTintColor,
super.elevation,
MaterialStateProperty<EdgeInsetsGeometry?>? padding,
MaterialStateProperty<Size?>? minimumSize,
super.fixedSize,
super.maximumSize,
super.iconColor,
super.iconSize,
super.side,
super.shape,
super.mouseCursor,
super.visualDensity,
MaterialTapTargetSize? tapTargetSize,
super.animationDuration,
super.enableFeedback,
super.alignment,
InteractiveInkFeatureFactory? splashFactory,
this.clearPadding,
this.clearOverlay,
this.clearSplash,
}) : super(
overlayColor: overlayColor ??
(clearOverlay != null && clearOverlay
? const MaterialStatePropertyAll(Colors.transparent)
: null),
padding: padding ??
(clearPadding != null && clearPadding
? const MaterialStatePropertyAll(EdgeInsets.zero)
: null),
minimumSize: minimumSize ??
(clearPadding != null && clearPadding
? const MaterialStatePropertyAll(Size.zero)
: null),
tapTargetSize: tapTargetSize ??
(clearPadding != null && clearPadding
? MaterialTapTargetSize.shrinkWrap
: null),
splashFactory: splashFactory ??
(clearSplash != null && clearSplash
? NoSplash.splashFactory
: null),
);