ButtonThemeModifier constructor
ButtonThemeModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- ButtonTextTheme textTheme = ButtonTextTheme.normal,
- ButtonBarLayoutBehavior layoutBehavior = ButtonBarLayoutBehavior.padded,
- double minWidth = 88.0,
- double height = 36.0,
- EdgeInsetsGeometry? padding,
- ShapeBorder? shape,
- bool alignedDropdown = false,
- Color? buttonColor,
- Color? disabledColor,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- ColorScheme? colorScheme,
- MaterialTapTargetSize? materialTapTargetSize,
Creates a button theme.
The textTheme
, minWidth
, height
, and colorScheme
arguments
must not be null.
Implementation
ButtonThemeModifier({
super.key,
super.child,
super.modifierKey,
ButtonTextTheme textTheme = ButtonTextTheme.normal,
ButtonBarLayoutBehavior layoutBehavior = ButtonBarLayoutBehavior.padded,
double minWidth = 88.0,
double height = 36.0,
EdgeInsetsGeometry? padding,
ShapeBorder? shape,
bool alignedDropdown = false,
Color? buttonColor,
Color? disabledColor,
Color? focusColor,
Color? hoverColor,
Color? highlightColor,
Color? splashColor,
ColorScheme? colorScheme,
MaterialTapTargetSize? materialTapTargetSize,
}) : data = ButtonThemeData(
textTheme: textTheme,
minWidth: minWidth,
height: height,
padding: padding,
shape: shape,
alignedDropdown: alignedDropdown,
layoutBehavior: layoutBehavior,
buttonColor: buttonColor,
disabledColor: disabledColor,
focusColor: focusColor,
hoverColor: hoverColor,
highlightColor: highlightColor,
splashColor: splashColor,
colorScheme: colorScheme,
materialTapTargetSize: materialTapTargetSize,
);