ButtonThemeModifier constructor

ButtonThemeModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. ButtonTextTheme textTheme = ButtonTextTheme.normal,
  5. ButtonBarLayoutBehavior layoutBehavior = ButtonBarLayoutBehavior.padded,
  6. double minWidth = 88.0,
  7. double height = 36.0,
  8. EdgeInsetsGeometry? padding,
  9. ShapeBorder? shape,
  10. bool alignedDropdown = false,
  11. Color? buttonColor,
  12. Color? disabledColor,
  13. Color? focusColor,
  14. Color? hoverColor,
  15. Color? highlightColor,
  16. Color? splashColor,
  17. ColorScheme? colorScheme,
  18. 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,
      );