ButtonStyle constructor

const ButtonStyle({
  1. WidgetStateProperty<TextStyle?>? textStyle,
  2. WidgetStateProperty<Color?>? backgroundColor,
  3. WidgetStateProperty<Color?>? foregroundColor,
  4. WidgetStateProperty<Color?>? overlayColor,
  5. WidgetStateProperty<Color?>? shadowColor,
  6. WidgetStateProperty<Color?>? surfaceTintColor,
  7. WidgetStateProperty<double?>? elevation,
  8. WidgetStateProperty<EdgeInsetsGeometry?>? padding,
  9. WidgetStateProperty<Size?>? minimumSize,
  10. WidgetStateProperty<Size?>? fixedSize,
  11. WidgetStateProperty<Size?>? maximumSize,
  12. WidgetStateProperty<Color?>? iconColor,
  13. WidgetStateProperty<double?>? iconSize,
  14. IconAlignment? iconAlignment,
  15. WidgetStateProperty<BorderSide?>? side,
  16. WidgetStateProperty<OutlinedBorder?>? shape,
  17. WidgetStateProperty<MouseCursor?>? mouseCursor,
  18. VisualDensity? visualDensity,
  19. MaterialTapTargetSize? tapTargetSize,
  20. Duration? animationDuration,
  21. bool? enableFeedback,
  22. AlignmentGeometry? alignment,
  23. InteractiveInkFeatureFactory? splashFactory,
  24. ButtonLayerBuilder? backgroundBuilder,
  25. 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.iconAlignment,
  this.side,
  this.shape,
  this.mouseCursor,
  this.visualDensity,
  this.tapTargetSize,
  this.animationDuration,
  this.enableFeedback,
  this.alignment,
  this.splashFactory,
  this.backgroundBuilder,
  this.foregroundBuilder,
});