Add popup when hiding the balance

This commit is contained in:
tuxpizza 2024-12-30 20:25:18 -05:00
parent 3352802a4f
commit 4152838123
32 changed files with 59 additions and 1 deletions

View file

@ -92,6 +92,7 @@ class PreferencesKey {
static const lastSeenAppVersion = 'last_seen_app_version';
static const shouldShowMarketPlaceInDashboard = 'should_show_marketplace_in_dashboard';
static const showAddressBookPopupEnabled = 'show_address_book_popup_enabled';
static const hasShownBalanceDisplayPopup = 'has_shown_balance_display_popup';
static const isNewInstall = 'is_new_install';
static const serviceStatusShaKey = 'service_status_sha_key';
static const walletConnectPairingTopicsList = 'wallet_connect_pairing_topics_list';

View file

@ -91,7 +91,7 @@ class BalanceRowWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
GestureDetector(
onTap: () => dashboardViewModel.balanceViewModel.switchBalanceValue(),
onTap: () => _switchBalanceValue(context, S.of(context).balance_display_popup),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
@ -669,4 +669,13 @@ class BalanceRowWidget extends StatelessWidget {
void _showBalanceDescription(BuildContext context, String content) {
showPopUp<void>(context: context, builder: (_) => InformationPage(information: content));
}
void _switchBalanceValue(BuildContext context, String content) {
dashboardViewModel.balanceViewModel.switchBalanceValue();
if(dashboardViewModel.hasShownBalanceDisplayPopup == false) {
showPopUp<void>(context: context, builder: (_) => InformationPage(information: content));
dashboardViewModel.setHasShownBalanceDisplayPopup();
}
}
}

View file

@ -55,6 +55,7 @@ abstract class SettingsStoreBase with Store {
required SharedPreferences sharedPreferences,
required bool initialShouldShowMarketPlaceInDashboard,
required bool initialShowAddressBookPopupEnabled,
required bool initialHasShownBalanceDisplayPopup,
required FiatCurrency initialFiatCurrency,
required BalanceDisplayMode initialBalanceDisplayMode,
required bool initialSaveRecipientAddress,
@ -159,6 +160,7 @@ abstract class SettingsStoreBase with Store {
contactListAscending = initialContactListAscending,
shouldShowMarketPlaceInDashboard = initialShouldShowMarketPlaceInDashboard,
showAddressBookPopupEnabled = initialShowAddressBookPopupEnabled,
hasShownBalanceDisplayPopup = initialHasShownBalanceDisplayPopup,
exchangeStatus = initialExchangeStatus,
currentTheme = initialTheme,
pinCodeLength = initialPinLength,
@ -361,6 +363,11 @@ abstract class SettingsStoreBase with Store {
(bool value) =>
sharedPreferences.setBool(PreferencesKey.showAddressBookPopupEnabled, value));
reaction(
(_) => hasShownBalanceDisplayPopup,
(bool value) =>
sharedPreferences.setBool(PreferencesKey.hasShownBalanceDisplayPopup, value));
reaction((_) => pinCodeLength,
(int pinLength) => sharedPreferences.setInt(PreferencesKey.currentPinLength, pinLength));
@ -616,6 +623,9 @@ abstract class SettingsStoreBase with Store {
@observable
bool showAddressBookPopupEnabled;
@observable
bool hasShownBalanceDisplayPopup;
@observable
ObservableList<ActionListDisplayMode> actionlistDisplayMode;
@ -929,6 +939,8 @@ abstract class SettingsStoreBase with Store {
sharedPreferences.getBool(PreferencesKey.shouldShowMarketPlaceInDashboard) ?? true;
final showAddressBookPopupEnabled =
sharedPreferences.getBool(PreferencesKey.showAddressBookPopupEnabled) ?? true;
final hasShownBalanceDisplayPopup =
sharedPreferences.getBool(PreferencesKey.hasShownBalanceDisplayPopup) ?? false;
final exchangeStatus = ExchangeApiMode.deserialize(
raw: sharedPreferences.getInt(PreferencesKey.exchangeStatusKey) ??
ExchangeApiMode.enabled.raw);
@ -1198,6 +1210,7 @@ abstract class SettingsStoreBase with Store {
sharedPreferences: sharedPreferences,
initialShouldShowMarketPlaceInDashboard: shouldShowMarketPlaceInDashboard,
initialShowAddressBookPopupEnabled: showAddressBookPopupEnabled,
initialHasShownBalanceDisplayPopup: hasShownBalanceDisplayPopup,
nodes: nodes,
powNodes: powNodes,
appVersion: packageInfo.version,

View file

@ -747,6 +747,13 @@ abstract class DashboardViewModelBase with Store {
@action
void setSyncMode(SyncMode syncMode) => settingsStore.currentSyncMode = syncMode;
@computed
bool get hasShownBalanceDisplayPopup => settingsStore.hasShownBalanceDisplayPopup;
@action
void setHasShownBalanceDisplayPopup() => settingsStore.hasShownBalanceDisplayPopup = true;
@computed
bool get syncAll => settingsStore.currentSyncAll;

View file

@ -74,6 +74,7 @@
"backup_file": "ملف النسخ الاحتياطي",
"backup_password": "كلمة مرور النسخ الاحتياطي",
"balance": "توازن",
"balance_display_popup": "لقد أخفيت التوازن. إذا كنت ترغب في تمكين عرض التوازن مرة أخرى ، فما عليك سوى النقر فوق شرطات أو أيقونة التشفير.",
"balance_page": "صفحة التوازن",
"bill_amount": "مبلغ الفاتورة",
"billing_address_info": "إذا طُلب منك عنوان إرسال فواتير ، فأدخل عنوان الشحن الخاص بك",

View file

@ -74,6 +74,7 @@
"backup_file": "Резервно копие",
"backup_password": "Парола за възстановяване",
"balance": "Баланс",
"balance_display_popup": "Скрихте баланса. Ако искате да активирате отново дисплея на баланса, просто докоснете трите тирета или крипто икона.",
"balance_page": "Страница за баланс",
"bill_amount": "Искана сума",
"billing_address_info": "Ако Ви попитат за билинг адрес, въведето своя адрес за доставка",

View file

@ -74,6 +74,7 @@
"backup_file": "Soubor se zálohou",
"backup_password": "Heslo pro zálohy",
"balance": "Zůstatek",
"balance_display_popup": "Skryl jsi rovnováhu. Pokud byste chtěli znovu povolit displej vyvážení, stačí klepnout na tři pomlčky nebo ikonu krypto.",
"balance_page": "Stránka zůstatku",
"bill_amount": "Účtovaná částka",
"billing_address_info": "Při dotazu na fakturační adresu, zadejte svou doručovací adresu",

View file

@ -74,6 +74,7 @@
"backup_file": "Sicherungsdatei",
"backup_password": "Passwort sichern",
"balance": "Gleichgewicht",
"balance_display_popup": "Sie haben das Gleichgewicht versteckt. Wenn Sie die Balance -Anzeige erneut aktivieren möchten, tippen Sie einfach auf die drei Striche oder das Krypto -Symbol.",
"balance_page": "Balance-Seite",
"bill_amount": "Rechnungsbetrag",
"billing_address_info": "Wenn Sie nach einer Rechnungsadresse gefragt werden, geben Sie bitte Ihre Lieferadresse an",

View file

@ -74,6 +74,7 @@
"backup_file": "Backup file",
"backup_password": "Backup password",
"balance": "Balance",
"balance_display_popup": "You've hidden the balance. If you'd like to enable the balance display again, just tap the three dashes or crypto icon.",
"balance_page": "Balance Page",
"bill_amount": "Bill Amount",
"billing_address_info": "If asked for a billing address, provide your shipping address",

View file

@ -74,6 +74,7 @@
"backup_file": "Archivo de respaldo",
"backup_password": "Contraseña de respaldo",
"balance": "Balance",
"balance_display_popup": "Has escondido el equilibrio. Si desea habilitar la pantalla de equilibrio nuevamente, simplemente toque los tres guiones o el icono de cripto.",
"balance_page": "Página de saldo",
"bill_amount": "Importe de la factura",
"billing_address_info": "Si se le solicita una dirección de facturación, proporcione su dirección de envío",

View file

@ -74,6 +74,7 @@
"backup_file": "Fichier de sauvegarde",
"backup_password": "Mot de passe de sauvegarde",
"balance": "Équilibre",
"balance_display_popup": "Vous avez caché l'équilibre. Si vous souhaitez activer à nouveau l'affichage d'équilibre, appuyez simplement sur les trois tirets ou l'icône cryptographique.",
"balance_page": "Page Solde",
"bill_amount": "Montant de la facture",
"billing_address_info": "Si une adresse de facturation vous est demandée, indiquez votre adresse de livraison",

View file

@ -74,6 +74,7 @@
"backup_file": "Ajiyayyen fayil",
"backup_password": "Ajiyayyen kalmar sirri",
"balance": "Ma'auni",
"balance_display_popup": "Kun ɓoye ma'auni. Idan kana son kunna ma'aunin ma'auni, kawai matsa dashes uku ko crypto alamar.",
"balance_page": "Ma'auni Page",
"bill_amount": "Adadin Bill",
"billing_address_info": "Idan an nemi adireshin biyan kuɗi, samar da adireshin jigilar kaya",

View file

@ -74,6 +74,7 @@
"backup_file": "बैकअपफ़ाइल",
"backup_password": "बैकअप पासवर्ड",
"balance": "संतुलन",
"balance_display_popup": "आपने संतुलन छिपा लिया है। यदि आप फिर से बैलेंस डिस्प्ले को सक्षम करना चाहते हैं, तो बस तीन डैश या क्रिप्टो आइकन पर टैप करें।",
"balance_page": "बैलेंस पेज",
"bill_amount": "बिल राशि",
"billing_address_info": "यदि बिलिंग पता मांगा जाए, तो अपना शिपिंग पता प्रदान करें",

View file

@ -74,6 +74,7 @@
"backup_file": "Sigurnosna kopija datoteke",
"backup_password": "Lozinka za sigurnosnu kopiju",
"balance": "Uravnotežiti",
"balance_display_popup": "Sakrili ste ravnotežu. Ako želite ponovno omogućiti zaslon ravnoteže, samo dodirnite tri crtice ili kripto ikonu.",
"balance_page": "Stranica sa stanjem",
"bill_amount": "Iznos računa",
"billing_address_info": "Ako se od vas zatraži adresa za naplatu, navedite svoju adresu za dostavu",

View file

@ -74,6 +74,7 @@
"backup_file": "Կրկնօրինակի ֆայլ",
"backup_password": "Կրկնօրինակի գաղտնաբառ",
"balance": "Հաշվեկշիռ",
"balance_display_popup": "Դուք թաքցնում եք հավասարակշռությունը: Եթե ​​ցանկանում եք կրկին միացնել հավասարակշռությունը, պարզապես հպեք երեք բշտիկների կամ ծպտյալ պատկերակին:",
"balance_page": "Հաշվեկշռի էջ",
"bill_amount": "Հաշիվը",
"billing_address_info": "Եթե խնդրեն հաշվեվճարի հասցե, ապա տրամադրեք ձեր առաքման հասցեն",

View file

@ -74,6 +74,7 @@
"backup_file": "File cadangan",
"backup_password": "Kata sandi cadangan",
"balance": "Keseimbangan",
"balance_display_popup": "Anda telah menyembunyikan keseimbangan. Jika Anda ingin mengaktifkan tampilan saldo lagi, cukup ketuk ikon tiga tanda hubung atau crypto.",
"balance_page": "Halaman Saldo",
"bill_amount": "Jumlah Tagihan",
"billing_address_info": "Jika diminta alamat billing, berikan alamat pengiriman Anda",

View file

@ -74,6 +74,7 @@
"backup_file": "Backup file",
"backup_password": "Backup password",
"balance": "Bilancia",
"balance_display_popup": "Hai nascosto l'equilibrio. Se desideri abilitare di nuovo il display di bilanciamento, basta toccare le tre icona Crypto.",
"balance_page": "Pagina di equilibrio",
"bill_amount": "Importo della fattura",
"billing_address_info": "Se ti viene richiesto un indirizzo di fatturazione, fornisci il tuo indirizzo di spedizione",

View file

@ -74,6 +74,7 @@
"backup_file": "バックアップファイル",
"backup_password": "バックアップパスワード",
"balance": "バランス",
"balance_display_popup": "あなたはバランスを隠しました。バランスディスプレイをもう一度有効にしたい場合は、3つのダッシュまたは暗号アイコンをタップしてください。",
"balance_page": "残高ページ",
"bill_amount": "請求額",
"billing_address_info": "請求先住所を尋ねられた場合は、配送先住所を入力してください",

View file

@ -74,6 +74,7 @@
"backup_file": "백업 파일",
"backup_password": "백업 비밀번호",
"balance": "균형",
"balance_display_popup": "당신은 균형을 숨겼습니다. 밸런스 디스플레이를 다시 활성화하려면 세 개의 대시 또는 암호화 아이콘을 누릅니다.",
"balance_page": "잔액 페이지",
"bill_amount": "청구 금액",
"billing_address_info": "청구서 수신 주소를 묻는 메시지가 표시되면 배송 주소를 입력하세요.",

View file

@ -74,6 +74,7 @@
"backup_file": "အရန်ဖိုင်",
"backup_password": "စကားဝှက်ကို အရန်သိမ်းဆည်းပါ။",
"balance": "လက်ကျန်ငေှ",
"balance_display_popup": "မင်းချိန်ခွင်လျှာကိုဝှက်ထားတယ် သင်ချိန်ခွင်လျှာကိုထပ်မံဖြည့်ဆည်းပေးလိုပါက dashes သုံးခုသို့မဟုတ် crypto icon ကိုသာအသာပုတ်ပါ။",
"balance_page": "လက်ကျန်စာမျက်နှာ",
"bill_amount": "ဘီလ်ပမာဏ",
"billing_address_info": "ငွေပေးချေရမည့်လိပ်စာကို တောင်းဆိုပါက သင့်ပို့ဆောင်ရေးလိပ်စာကို ပေးပါ။",

View file

@ -74,6 +74,7 @@
"backup_file": "Backup bestand",
"backup_password": "Reservewachtwoord",
"balance": "Evenwicht",
"balance_display_popup": "Je hebt de balans verborgen. Als u het balansdisplay opnieuw wilt inschakelen, tikt u op het drie streepje of crypto -pictogram.",
"balance_page": "Saldo pagina",
"bill_amount": "Bill bedrag",
"billing_address_info": "Als u om een factuuradres wordt gevraagd, geef dan uw verzendadres op",

View file

@ -74,6 +74,7 @@
"backup_file": "Plik kopii zapasowej",
"backup_password": "Hasło kpoii zapasowej",
"balance": "Balansować",
"balance_display_popup": "Ukryłeś równowagę. Jeśli chcesz ponownie włączyć wyświetlacz równowagi, po prostu dotknij trzech dystansów lub ikonów kryptograficznych.",
"balance_page": "Strona salda",
"bill_amount": "Kwota rachunku",
"billing_address_info": "Jeśli zostaniesz poproszony o podanie adresu rozliczeniowego, podaj swój adres wysyłki",

View file

@ -74,6 +74,7 @@
"backup_file": "Arquivo de backup",
"backup_password": "Senha de backup",
"balance": "Equilíbrio",
"balance_display_popup": "Você escondeu o equilíbrio. Se você deseja ativar a exibição do Balance novamente, basta tocar nos três traços ou ícone de criptografia.",
"balance_page": "Página de saldo",
"bill_amount": "Valor da conta",
"billing_address_info": "Se for solicitado um endereço de cobrança, forneça seu endereço de entrega",

View file

@ -74,6 +74,7 @@
"backup_file": "Файл резервной копии",
"backup_password": "Пароль резервной копии",
"balance": "Баланс",
"balance_display_popup": "Вы спрятали баланс. Если вы хотите снова включить дисплей баланса, просто нажмите на три тире или крипто -значок.",
"balance_page": "Страница баланса",
"bill_amount": "Сумма счета",
"billing_address_info": "Если вас попросят указать платежный адрес, укажите адрес доставки",

View file

@ -74,6 +74,7 @@
"backup_file": "ไฟล์สำรองข้อมูล",
"backup_password": "รหัสผ่านสำรองข้อมูล",
"balance": "สมดุล",
"balance_display_popup": "คุณซ่อนสมดุล หากคุณต้องการเปิดใช้งานการแสดงยอดคงเหลืออีกครั้งเพียงแตะสามขีดหรือไอคอน crypto",
"balance_page": "หน้ายอดคงเหลือ",
"bill_amount": "จำนวนบิล",
"billing_address_info": "ถ้าถูกร้องขอที่อยู่สำหรับการวางบิล ให้ใช้ที่อยู่จัดส่งของคุณ",

View file

@ -74,6 +74,7 @@
"backup_file": "Backup na file",
"backup_password": "Backup na password",
"balance": "Balanse",
"balance_display_popup": "Itinago mo ang balanse. Kung nais mong paganahin muli ang balanse ng balanse, i -tap lamang ang tatlong mga dash o icon ng crypto.",
"balance_page": "Pahina ng Balanse",
"bill_amount": "Halaga ng Bill",
"billing_address_info": "Kung humihingi ng billing address, ibigay ang iyong shipping address",

View file

@ -74,6 +74,7 @@
"backup_file": "Yedek dosyası",
"backup_password": "Yedek parolası",
"balance": "Denge",
"balance_display_popup": "Dengeyi sakladınız. Denge ekranını tekrar etkinleştirmek isterseniz, üç çizgi veya kripto simgesine dokunun.",
"balance_page": "Bakiye Sayfası",
"bill_amount": "Fatura Tutarı",
"billing_address_info": "Eğer fatura adresi istenirse, kargo adresinizi girin",

View file

@ -74,6 +74,7 @@
"backup_file": "Файл резервної копії",
"backup_password": "Пароль резервної копії",
"balance": "Балансувати",
"balance_display_popup": "Ви приховали рівновагу. Якщо ви хочете знову ввімкнути дисплей балансу, просто торкніться трьох тире або криптовалют.",
"balance_page": "Сторінка балансу",
"bill_amount": "Сума рахунку",
"billing_address_info": "Якщо буде запропоновано платіжну адресу, вкажіть свою адресу доставки",

View file

@ -74,6 +74,7 @@
"backup_file": "بیک اپ فائل",
"backup_password": "بیک اپ پاس ورڈ",
"balance": "بقیہ",
"balance_display_popup": "آپ نے توازن چھپا لیا ہے۔ اگر آپ دوبارہ بیلنس ڈسپلے کو قابل بنانا چاہتے ہیں تو ، صرف تین ڈیش یا کریپٹو آئیکن کو تھپتھپائیں۔",
"balance_page": "بیلنس صفحہ",
"bill_amount": "بل رقم",
"billing_address_info": "اگر آپ سے بلنگ کا پتہ پوچھا جائے تو اپنا شپنگ ایڈریس فراہم کریں۔",

View file

@ -74,6 +74,7 @@
"backup_file": "Tập tin sao lưu",
"backup_password": "Mật khẩu sao lưu",
"balance": "Số dư",
"balance_display_popup": "Bạn đã che giấu sự cân bằng. Nếu bạn muốn bật lại màn hình cân bằng, chỉ cần nhấn vào biểu tượng ba dấu gạch ngang hoặc tiền điện tử.",
"balance_page": "Trang số dư",
"bill_amount": "Số tiền hóa đơn",
"billing_address_info": "Nếu được yêu cầu địa chỉ thanh toán, hãy cung cấp địa chỉ giao hàng của bạn",

View file

@ -74,6 +74,7 @@
"backup_file": "Ṣẹ̀dà akọsílẹ̀",
"backup_password": "Ṣẹ̀dà ọ̀rọ̀ aṣínà",
"balance": "Iwọntunwọnsi",
"balance_display_popup": "O ti sọ dọgbadọgba. Ti o ba fẹ lati mu ki atunyẹwo iwọntunwọntun si, kan tẹ awọn ọjọ mẹta tabi aami Crypto.",
"balance_page": "Oju-iwe iwọntunwọnsi",
"bill_amount": "Iye ìwé owó",
"billing_address_info": "Tí ọlọ́jà bá bèèrè àdírẹ́sì sísan yín, fún òun ni àdírẹ́sì t'á ránṣẹ́ káàdì yìí sí",

View file

@ -74,6 +74,7 @@
"backup_file": "备份文件",
"backup_password": "备份密码",
"balance": "平衡",
"balance_display_popup": "您已经隐藏了平衡。如果您想再次启用余额显示屏,只需点击三个破折号或加密图标即可。",
"balance_page": "余额页",
"bill_amount": "账单金额",
"billing_address_info": "如果要求提供帐单地址,请提供您的送货地址",