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);