PlatformButton constructor

const PlatformButton({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required Widget child,
  4. Color? color,
  5. Color? disabledColor,
  6. double? borderRadius,
  7. EdgeInsetsGeometry? padding,
  8. Color? textColor,
  9. double? minSize,
  10. double? pressedOpacity,
  11. MaterialTapTargetSize? materialTapTargetSize,
  12. ButtonStyle? style,
})

Implementation

const PlatformButton({
  super.key,
  required this.onPressed,
  required this.child,
  this.color,
  this.disabledColor,
  this.borderRadius,
  this.padding,
  this.textColor,
  this.minSize,
  this.pressedOpacity,
  this.materialTapTargetSize,
  this.style,
});