Parcourir la source

[fit]1.修复弹窗在显示的时候还弹出的问题
2.修改亲密度后手动刷新键盘

云天逵 il y a 6 mois
Parent
commit
a3b58f3222

+ 3 - 1
lib/module/intimacy_scale/intimacy_scale_controller.dart

@@ -83,7 +83,9 @@ class IntimacyScaleController extends BaseController {
       keyboardInfo.intimacy = currentCustomIntimacy.value;
       KeyboardAndroidPlatform.updateKeyboardInfo(keyboardInfo);
       await keyboardRepository.refreshData();
-
+      Future.delayed(const Duration(milliseconds: 500), () {
+        KeyboardAndroidPlatform.refreshData();
+      });
       Get.back();
     } catch (error) {
       if (error is ServerErrorException) {

+ 2 - 0
lib/module/store/suprise/surprise_dialog.dart

@@ -21,8 +21,10 @@ class SurpriseDialog {
 
   static void show({VoidCallback? clickConfirm,VoidCallback? clickCancel}) {
     EventHandler.report(EventId.event_02009);
+    if(SmartDialog.checkExist(tag: tag))return;
     SmartDialog.show(
       tag: tag,
+      keepSingle: true,
       backType: SmartBackType.block,
       clickMaskDismiss: false,
       maskColor: ColorName.black70,

+ 1 - 0
lib/module/store/ticket/discount_ticket_dialog.dart

@@ -18,6 +18,7 @@ class DiscountTicketDialog {
 
   static void show({VoidCallback? clickConfirm, VoidCallback? clickCancel}) {
     EventHandler.report(EventId.event_02006);
+    if(SmartDialog.checkExist(tag: tag))return;
     SmartDialog.show(
       tag: tag,
       backType: SmartBackType.block,