CupertinoButton constructor

const CupertinoButton({@required Widget child, EdgeInsetsGeometry padding, Color color, Color disabledColor, double minSize: 44.0, double pressedOpacity: 0.1, BorderRadius borderRadius: const BorderRadius.all(Radius.circular(8.0)), @required VoidCallback onPressed })

Creates an iOS-style button.

Implementation

const CupertinoButton({
  @required this.child,
  this.padding,
  this.color,
  this.disabledColor,
  this.minSize = 44.0,
  this.pressedOpacity = 0.1,
  this.borderRadius = const BorderRadius.all(Radius.circular(8.0)),
  @required this.onPressed,
}) : assert(pressedOpacity == null || (pressedOpacity >= 0.0 && pressedOpacity <= 1.0));