ButtonStyle constructor
- 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,
- ButtonLayerBuilder? backgroundBuilder,
- ButtonLayerBuilder? foregroundBuilder,
Create a ButtonStyle.
Implementation
const ButtonStyle({
this.textStyle,
this.backgroundColor,
this.foregroundColor,
this.overlayColor,
this.shadowColor,
this.surfaceTintColor,
this.elevation,
this.padding,
this.minimumSize,
this.fixedSize,
this.maximumSize,
this.iconColor,
this.iconSize,
this.side,
this.shape,
this.mouseCursor,
this.visualDensity,
this.tapTargetSize,
this.animationDuration,
this.enableFeedback,
this.alignment,
this.splashFactory,
this.backgroundBuilder,
this.foregroundBuilder,
});