ButtonStyle constructor

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