CustomCupertinoDialog constructor
const
CustomCupertinoDialog({
- Key? key,
- EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 36),
- EdgeInsets contentPadding = const EdgeInsets.fromLTRB(16, 24, 16, 16),
- Widget? title,
- required Widget content,
- String? cancelText,
- String? confirmText,
- TextStyle cancelTextStyle = const TextStyle(color: Color(0xFF777777), fontSize: 18),
- TextStyle confirmTextStyle = const TextStyle(color: Color(0xFF1989FA), fontSize: 18, fontWeight: FontWeight.bold),
- EdgeInsets cancelPadding = const EdgeInsets.symmetric(vertical: 12),
- EdgeInsets confirmPadding = const EdgeInsets.symmetric(vertical: 12),
- Function? onCancel,
- 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);