showSecondaryConfirmDialog static method

dynamic showSecondaryConfirmDialog({
  1. required TUIKitWideModalOperationKey operationKey,
  2. required BuildContext context,
  3. required String text,
  4. required TUITheme theme,
  5. VoidCallback? onConfirm,
  6. 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))
              ],
            ),
          ));
}