CupertinoButtonModifier constructor

const CupertinoButtonModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. EdgeInsetsGeometry? padding,
  5. Color? color,
  6. Color disabledColor = CupertinoColors.quaternarySystemFill,
  7. double? minSize = kMinInteractiveDimensionCupertino,
  8. double? pressedOpacity = 0.4,
  9. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)),
  10. AlignmentGeometry alignment = Alignment.center,
  11. required VoidCallback? onPressed,
})

Creates an iOS-style button.

Implementation

const CupertinoButtonModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.padding,
  this.color,
  this.disabledColor = CupertinoColors.quaternarySystemFill,
  this.minSize = kMinInteractiveDimensionCupertino,
  this.pressedOpacity = 0.4,
  this.borderRadius = const BorderRadius.all(Radius.circular(8.0)),
  this.alignment = Alignment.center,
  required this.onPressed,
})  : assert(pressedOpacity == null || (pressedOpacity >= 0.0 && pressedOpacity <= 1.0)),
      _filled = false;