Add privacy settings route

Add text translation
This commit is contained in:
OmarHatem 2022-10-05 15:58:25 +02:00
parent c37bfb2e83
commit 6bbedde9b7
19 changed files with 97 additions and 27 deletions

View file

@ -25,6 +25,7 @@ import 'package:cake_wallet/src/screens/dashboard/widgets/balance_page.dart';
import 'package:cake_wallet/view_model/ionia/ionia_account_view_model.dart';
import 'package:cake_wallet/view_model/ionia/ionia_gift_cards_list_view_model.dart';
import 'package:cake_wallet/view_model/ionia/ionia_purchase_merch_view_model.dart';
import 'package:cake_wallet/view_model/privacy_settings_view_model.dart';
import 'package:cw_core/unspent_coins_info.dart';
import 'package:cake_wallet/core/backup_service.dart';
import 'package:cw_core/wallet_service.dart';
@ -786,5 +787,8 @@ Future setup(
(IoniaAnyPayPaymentInfo paymentInfo, AnyPayPaymentCommittedInfo committedInfo)
=> IoniaPaymentStatusPage(getIt.get<IoniaPaymentStatusViewModel>(param1: paymentInfo, param2: committedInfo)));
getIt.registerFactoryParam<PrivacySettingsViewModel, WalletType, void>((type, _) =>
PrivacySettingsViewModel(type));
_isSetupFinished = true;
}

View file

@ -10,6 +10,7 @@ import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_redeem_page.dar
import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_tip_page.dart';
import 'package:cake_wallet/src/screens/ionia/cards/ionia_gift_card_detail_page.dart';
import 'package:cake_wallet/src/screens/ionia/cards/ionia_more_options_page.dart';
import 'package:cake_wallet/src/screens/new_wallet/advanced_privacy_settings_page.dart';
import 'package:cake_wallet/src/screens/order_details/order_details_page.dart';
import 'package:cake_wallet/src/screens/pin_code/pin_code_widget.dart';
import 'package:cake_wallet/src/screens/restore/restore_from_backup_page.dart';
@ -19,6 +20,7 @@ import 'package:cake_wallet/src/screens/support/support_page.dart';
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_details_page.dart';
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_list_page.dart';
import 'package:cake_wallet/view_model/monero_account_list/account_list_item.dart';
import 'package:cake_wallet/view_model/privacy_settings_view_model.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:cake_wallet/routes.dart';
@ -471,6 +473,13 @@ Route<dynamic> createRoute(RouteSettings settings) {
param1: paymentInfo,
param2: commitedInfo));
case Routes.privacySettings:
final type = settings.arguments as WalletType;
final privacySettingsViewModel = getIt.get<PrivacySettingsViewModel>(param1: type);
return CupertinoPageRoute<void>(
builder: (_) => AdvancedPrivacySettingsPage(privacySettingsViewModel));
default:
return MaterialPageRoute<void>(
builder: (_) => Scaffold(

View file

@ -76,4 +76,5 @@ class Routes {
static const ioniaPaymentStatusPage = '/ionia_payment_status_page';
static const ioniaMoreOptionsPage = '/ionia_more_options_page';
static const ioniaCustomRedeemPage = '/ionia_custom_redeem_page';
static const privacySettings = '/privacy_settings';
}

View file

@ -198,18 +198,29 @@ class _WalletNameFormState extends State<WalletNameForm> {
]
]),
bottomSectionPadding:
EdgeInsets.only(left: 24, right: 24, bottom: 24),
bottomSection: Observer(
builder: (context) {
return LoadingPrimaryButton(
onPressed: _confirmForm,
text: S.of(context).seed_language_next,
color: Colors.green,
textColor: Colors.white,
isLoading: _walletNewVM.state is IsExecutingState,
isDisabled: _walletNewVM.name.isEmpty,
);
},
EdgeInsets.all(24),
bottomSection: Column(
children: [
Observer(
builder: (context) {
return LoadingPrimaryButton(
onPressed: _confirmForm,
text: S.of(context).seed_language_next,
color: Colors.green,
textColor: Colors.white,
isLoading: _walletNewVM.state is IsExecutingState,
isDisabled: _walletNewVM.name.isEmpty,
);
},
),
const SizedBox(height: 25),
GestureDetector(
onTap: () {
Navigator.of(context).pushNamed(Routes.privacySettings);
},
child: Text(S.of(context).advanced_privacy_settings),
),
],
)),
);
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "Wähle aus verfügbaren Optionen:",
"custom_redeem_amount": "Benutzerdefinierter Einlösungsbetrag",
"add_custom_redemption": "Benutzerdefinierte Einlösung hinzufügen",
"remaining": "Rest"
"remaining": "Rest",
"advanced_privacy_settings": "Erweiterte Datenschutzeinstellungen",
"privacy_settings": "Datenschutzeinstellungen",
"settings_can_be_changed_later": "Diese Einstellungen können später in den App-Einstellungen geändert werden"
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "Choose from the available options:",
"custom_redeem_amount": "Custom Redeem Amount",
"add_custom_redemption": "Add Custom Redemption",
"remaining": "remaining"
"remaining": "remaining",
"advanced_privacy_settings": "Advanced Privacy Settings",
"privacy_settings": "Privacy Settings",
"settings_can_be_changed_later": "These settings can be changed later in the app settings"
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "Elija entre las opciones disponibles:",
"custom_redeem_amount": "Cantidad de canje personalizada",
"add_custom_redemption": "Agregar redención personalizada",
"remaining": "restante"
"remaining": "restante",
"advanced_privacy_settings": "Configuración avanzada de privacidad",
"privacy_settings": "La configuración de privacidad",
"settings_can_be_changed_later": "Estas configuraciones se pueden cambiar más tarde en la configuración de la aplicación"
}

View file

@ -642,5 +642,8 @@
"choose_from_available_options": "Choisissez parmi les options disponibles :",
"custom_redeem_amount": "Montant d'échange personnalisé",
"add_custom_redemption": "Ajouter un remboursement personnalisé",
"remaining": "restant"
"remaining": "restant",
"advanced_privacy_settings": "Paramètres de confidentialité avancés",
"privacy_settings": "Paramètres de confidentialité",
"settings_can_be_changed_later": "Ces paramètres peuvent être modifiés ultérieurement dans les paramètres de l'application"
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "उपलब्ध विकल्पों में से चुनें:",
"custom_redeem_amount": "कस्टम रिडीम राशि",
"add_custom_redemption": "कस्टम रिडेम्पशन जोड़ें",
"remaining": "शेष"
"remaining": "शेष",
"advanced_privacy_settings": "उन्नत गोपनीयता सेटिंग्स",
"privacy_settings": "गोपनीय सेटिंग",
"settings_can_be_changed_later": "इन सेटिंग्स को बाद में ऐप सेटिंग में बदला जा सकता है"
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "Odaberite neku od dostupnih opcija:",
"custom_redeem_amount": "Prilagođeni iznos otkupa",
"add_custom_redemption": "Dodaj prilagođeni otkup",
"remaining": "preostalo"
"remaining": "preostalo",
"advanced_privacy_settings": "Napredne postavke privatnosti",
"privacy_settings": "Postavke privatnosti",
"settings_can_be_changed_later": "Te se postavke mogu promijeniti kasnije u postavkama aplikacije"
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "Scegli tra le opzioni disponibili:",
"custom_redeem_amount": "Importo di riscatto personalizzato",
"add_custom_redemption": "Aggiungi riscatto personalizzato",
"remaining": "rimanente"
"remaining": "rimanente",
"advanced_privacy_settings": "Impostazioni avanzate sulla privacy",
"privacy_settings": "Impostazioni della privacy",
"settings_can_be_changed_later": "Queste impostazioni possono essere modificate in seguito nelle impostazioni dell'app"
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "利用可能なオプションから選択してください:",
"custom_redeem_amount": "カスタム交換金額",
"add_custom_redemption": "カスタム引き換えを追加",
"remaining": "残り"
"remaining": "残り",
"advanced_privacy_settings": "高度なプライバシー設定",
"privacy_settings": "プライバシー設定",
"settings_can_be_changed_later": "これらの設定は、後でアプリの設定で変更できます"
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "사용 가능한 옵션에서 선택:",
"custom_redeem_amount": "사용자 지정 상환 금액",
"add_custom_redemption": "사용자 지정 상환 추가",
"remaining": "남은"
"remaining": "남은",
"advanced_privacy_settings": "고급 개인 정보 설정",
"privacy_settings": "개인 정보 설정",
"settings_can_be_changed_later": "이 설정은 나중에 앱 설정에서 변경할 수 있습니다."
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "Kies uit de beschikbare opties:",
"custom_redeem_amount": "Aangepast inwisselbedrag",
"add_custom_redemption": "Voeg aangepaste inwisseling toe",
"remaining": "resterende"
"remaining": "resterende",
"advanced_privacy_settings": "Geavanceerde privacy-instellingen",
"privacy_settings": "Privacy instellingen",
"settings_can_be_changed_later": "Deze instellingen kunnen later worden gewijzigd in de app-instellingen"
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "Wybierz z dostępnych opcji:",
"custom_redeem_amount": "Niestandardowa kwota wykorzystania",
"add_custom_redemption": "Dodaj niestandardowe wykorzystanie",
"remaining": "pozostałe"
"remaining": "pozostałe",
"advanced_privacy_settings": "Zaawansowane ustawienia prywatności",
"privacy_settings": "Ustawienia prywatności",
"settings_can_be_changed_later": "Te ustawienia można później zmienić w ustawieniach aplikacji"
}

View file

@ -643,5 +643,8 @@
"choose_from_available_options": "Escolha entre as opções disponíveis:",
"custom_redeem_amount": "Valor de resgate personalizado",
"add_custom_redemption": "Adicionar resgate personalizado",
"remaining": "restante"
"remaining": "restante",
"advanced_privacy_settings": "Configurações de privacidade avançadas",
"privacy_settings": "Configurações de privacidade",
"settings_can_be_changed_later": "Essas configurações podem ser alteradas posteriormente nas configurações do aplicativo"
}

View file

@ -644,5 +644,8 @@
"choose_from_available_options": "Выберите из доступных вариантов:",
"custom_redeem_amount": "Пользовательская сумма погашения",
"add_custom_redemption": "Добавить пользовательское погашение",
"remaining": "осталось"
"remaining": "осталось",
"advanced_privacy_settings": "Расширенные настройки конфиденциальности",
"privacy_settings": "Настройки конфиденциальности",
"settings_can_be_changed_later": "Эти настройки можно изменить позже в настройках приложения."
}

View file

@ -643,5 +643,8 @@
"choose_from_available_options": "Виберіть із доступних варіантів:",
"custom_redeem_amount": "Власна сума викупу",
"add_custom_redemption": "Додати спеціальне погашення",
"remaining": "залишилося"
"remaining": "залишилося",
"advanced_privacy_settings": "Розширені налаштування конфіденційності",
"privacy_settings": "Параметри конфіденційності",
"settings_can_be_changed_later": "Ці параметри можна змінити пізніше в налаштуваннях програми"
}

View file

@ -642,5 +642,8 @@
"choose_from_available_options": "从可用选项中选择:",
"custom_redeem_amount": "自定义兑换金额",
"add_custom_redemption": "添加自定义兑换",
"remaining": "剩余"
"remaining": "剩余",
"advanced_privacy_settings": "高级隐私设置",
"privacy_settings": "隐私设置",
"settings_can_be_changed_later": "稍后可以在应用设置中更改这些设置"
}