showSecondaryConfirmDialog static method
dynamic
showSecondaryConfirmDialog({
- required TUIKitWideModalOperationKey operationKey,
- required BuildContext context,
- required String text,
- required TUITheme theme,
- VoidCallback? onConfirm,
- VoidCallback? onCancel,
Implementation
static showSecondaryConfirmDialog({
required TUIKitWideModalOperationKey operationKey,
required BuildContext context,
required String text,
required TUITheme theme,
VoidCallback? onConfirm,
VoidCallback? onCancel,
}) {
return TUIKitWidePopup.showPopupWindow(
operationKey: operationKey,
context: context,
isDarkBackground: false,
onCancel: onCancel,
onConfirm: onConfirm,
width: 350,
height: 120,
child: (onClose) => Container(
padding: const EdgeInsets.only(left: 16, right: 16),
child: Row(
children: [
Icon(Icons.info, color: theme.primaryColor),
const SizedBox(
width: 8,
),
Expanded(child: Text(text))
],
),
));
}