From ec7b9ccb514f74170f755facf91cb11b0e457557 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Fri, 29 Aug 2025 13:58:36 +0300 Subject: [PATCH] ignore NoNullnessRewrite in proguard-rules.pro --- android/app/proguard-rules.pro | 1 + lib/view_model/dashboard/balance_view_model.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index a733bae9e..f29702b8c 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -7,6 +7,7 @@ -keep class io.flutter.plugins.** { *; } -dontwarn io.flutter.embedding.** -dontwarn com.google.android.play.core.splitcompat.SplitCompatApplication +-dontwarn com.google.android.gms.common.annotation.NoNullnessRewrite # start reown -dontwarn com.github.luben.zstd.BufferPool diff --git a/lib/view_model/dashboard/balance_view_model.dart b/lib/view_model/dashboard/balance_view_model.dart index ea9272a5c..f09d82be3 100644 --- a/lib/view_model/dashboard/balance_view_model.dart +++ b/lib/view_model/dashboard/balance_view_model.dart @@ -54,7 +54,7 @@ abstract class BalanceViewModelBase with Store { BalanceViewModelBase( {required this.appStore, required this.settingsStore, required this.fiatConvertationStore}) : isReversing = false, - isShowCard = appStore.wallet!.walletInfo.isShowIntroCakePayCard, + isShowCard = appStore.wallet?.walletInfo.isShowIntroCakePayCard ?? false, wallet = appStore.wallet! { reaction((_) => appStore.wallet, (wallet) { _onWalletChange(wallet);