CustomCupertinoDialog constructor

const CustomCupertinoDialog({
  1. Key? key,
  2. EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 36),
  3. EdgeInsets contentPadding = const EdgeInsets.fromLTRB(16, 24, 16, 16),
  4. Widget? title,
  5. required Widget content,
  6. String? cancelText,
  7. String? confirmText,
  8. TextStyle cancelTextStyle = const TextStyle(color: Color(0xFF777777), fontSize: 18),
  9. TextStyle confirmTextStyle = const TextStyle(color: Color(0xFF1989FA), fontSize: 18, fontWeight: FontWeight.bold),
  10. EdgeInsets cancelPadding = const EdgeInsets.symmetric(vertical: 12),
  11. EdgeInsets confirmPadding = const EdgeInsets.symmetric(vertical: 12),
  12. Function? onCancel,
  13. Function? onConfirm,
})

Implementation

const CustomCupertinoDialog({
  Key? key,
  this.margin = const EdgeInsets.symmetric(horizontal: 36),
  this.contentPadding = const EdgeInsets.fromLTRB(16, 24, 16, 16),
  this.title,
  required this.content,
  this.cancelText,
  this.confirmText,
  this.cancelTextStyle = const TextStyle(color: Color(0xFF777777), fontSize: 18),
  this.confirmTextStyle = const TextStyle(color: Color(0xFF1989FA), fontSize: 18, fontWeight: FontWeight.bold),
  this.cancelPadding = const EdgeInsets.symmetric(vertical: 12),
  this.confirmPadding = const EdgeInsets.symmetric(vertical: 12),
  this.onCancel,
  this.onConfirm,
}) : super(key: key);