diff --git a/lib/src/screens/seed/wallet_seed_page.dart b/lib/src/screens/seed/wallet_seed_page.dart index 9b937d946..b419ef9ee 100644 --- a/lib/src/screens/seed/wallet_seed_page.dart +++ b/lib/src/screens/seed/wallet_seed_page.dart @@ -120,17 +120,22 @@ class _WalletSeedPageBodyState extends State { void initState() { super.initState(); + // required to setup autofill context: _nameFieldController.text = widget.walletSeedViewModel.name; - WidgetsBinding.instance.addPostFrameCallback((_) async { - _seedNode.requestFocus(); + // WidgetsBinding.instance.addPostFrameCallback((_) async { + // setupPasswordManager(); + // }); + } - await Future.delayed(Duration(milliseconds: 200)); - _seedFieldController.text = widget.walletSeedViewModel.seed; + Future setupPasswordManager() async { + _seedNode.requestFocus(); - WidgetsBinding.instance.addPostFrameCallback((_) { - FocusScope.of(context).unfocus(); - }); + await Future.delayed(Duration(milliseconds: 200)); + _seedFieldController.text = widget.walletSeedViewModel.seed; + + WidgetsBinding.instance.addPostFrameCallback((_) { + FocusScope.of(context).unfocus(); }); } @@ -225,7 +230,7 @@ class _WalletSeedPageBodyState extends State { children: [ Flexible( child: Container( - padding: EdgeInsets.only(right: 8.0), + padding: EdgeInsets.only(right: 4), child: PrimaryButton( onPressed: () { ShareUtil.share( @@ -241,7 +246,7 @@ class _WalletSeedPageBodyState extends State { ), Flexible( child: Container( - padding: EdgeInsets.only(left: 8.0), + padding: EdgeInsets.only(left: 4), child: Builder( builder: (context) => PrimaryButton( onPressed: () { @@ -256,19 +261,34 @@ class _WalletSeedPageBodyState extends State { ), ), ), - Flexible( - child: Container( - padding: EdgeInsets.only(right: 8.0), - child: PrimaryButton( - onPressed: () => TextInput.finishAutofillContext(), - text: "save 2", - color: Colors.green, - textColor: Colors.white, - ), - ), - ) ], ), + Container( + padding: EdgeInsets.only(top: 10), + child: PrimaryButton( + onPressed: () async { + showPopUp( + context: context, + builder: (dialogContext) { + return AlertWithTwoActions( + alertTitle: S.of(context).save_to_pm, + alertContent: S.of(context).save_backup_password, + rightButtonText: S.of(context).ok, + leftButtonText: S.of(context).cancel, + actionRightButton: () async {}, + actionLeftButton: () => Navigator.of(dialogContext).pop(), + ); + }, + ); + + await setupPasswordManager(); + TextInput.finishAutofillContext(); + }, + text: S.current.save_to_pm, + color: Colors.blue, + textColor: Colors.white, + ), + ), ], ), ], diff --git a/res/values/strings_ar.arb b/res/values/strings_ar.arb index 137e34ef8..ea02a2035 100644 --- a/res/values/strings_ar.arb +++ b/res/values/strings_ar.arb @@ -530,6 +530,7 @@ "save_backup_password": "يرجى التأكد من حفظ كلمة المرور الاحتياطية. لن تتمكن من استيراد ملفات النسخ الاحتياطي بدونها.", "save_backup_password_alert": "حفظ كلمة المرور الاحتياطية", "save_to_downloads": "ﺕﻼﻳﺰﻨﺘﻟﺍ ﻲﻓ ﻆﻔﺣ", + "save_to_pm": "حفظ إلى مدير كلمة المرور", "saved_the_trade_id": "لقد تم حفظ معرف العملية", "scan_qr_code": "امسح رمز QR ضوئيًا", "scan_qr_code_to_get_address": "امسح ال QR للحصول على العنوان", diff --git a/res/values/strings_bg.arb b/res/values/strings_bg.arb index ae2877ab1..94d6890a7 100644 --- a/res/values/strings_bg.arb +++ b/res/values/strings_bg.arb @@ -530,6 +530,7 @@ "save_backup_password": "Моля, запишете своята парола за възстановяване. Импортирането на резервни копия не е възможно без нея.", "save_backup_password_alert": "Запазване на паролата за възстановяване", "save_to_downloads": "Запазване в Изтегляния", + "save_to_pm": "Запазване на мениджъра на пароли", "saved_the_trade_id": "Запазих trade ID-то", "scan_qr_code": "Сканирайте QR кода, за да получите адреса", "scan_qr_code_to_get_address": "Сканирайте QR кода, за да получите адреса", diff --git a/res/values/strings_cs.arb b/res/values/strings_cs.arb index 2f61782c8..132563504 100644 --- a/res/values/strings_cs.arb +++ b/res/values/strings_cs.arb @@ -530,6 +530,7 @@ "save_backup_password": "Prosím ujistěte se, že máte uschováno heslo pro zálohy. Bez něj nebudete moci naimportovat soubory se zálohami.", "save_backup_password_alert": "Uložit heslo pro zálohy", "save_to_downloads": "Uložit do Stažených souborů", + "save_to_pm": "Uložit správce hesel", "saved_the_trade_id": "Uložil jsem si ID transakce (trade ID)", "scan_qr_code": "Naskenujte QR kód pro získání adresy", "scan_qr_code_to_get_address": "Prohledejte QR kód a získejte adresu", diff --git a/res/values/strings_de.arb b/res/values/strings_de.arb index edfc152e1..de184ea13 100644 --- a/res/values/strings_de.arb +++ b/res/values/strings_de.arb @@ -531,6 +531,7 @@ "save_backup_password": "Bitte stellen Sie sicher, dass Sie Ihr Sicherungskennwort gespeichert haben. Ohne dieses können Sie Ihre Sicherungsdateien nicht importieren.", "save_backup_password_alert": "Sicherungskennwort speichern", "save_to_downloads": "Unter „Downloads“ speichern", + "save_to_pm": "Speichern Sie den Passwort Manager", "saved_the_trade_id": "Ich habe die Handels-ID gespeichert", "scan_qr_code": "QR-Code scannen", "scan_qr_code_to_get_address": "Scannen Sie den QR-Code, um die Adresse zu erhalten", diff --git a/res/values/strings_en.arb b/res/values/strings_en.arb index 636689380..78561cd04 100644 --- a/res/values/strings_en.arb +++ b/res/values/strings_en.arb @@ -530,6 +530,7 @@ "save_backup_password": "Please make sure that you have saved your backup password. You will not be able to import your backup files without it.", "save_backup_password_alert": "Save backup password", "save_to_downloads": "Save to Downloads", + "save_to_pm": "Save to Password Manager", "saved_the_trade_id": "I've saved the trade ID", "scan_qr_code": "Scan QR code", "scan_qr_code_to_get_address": "Scan the QR code to get the address", diff --git a/res/values/strings_es.arb b/res/values/strings_es.arb index b3f89fc2e..893fcafa3 100644 --- a/res/values/strings_es.arb +++ b/res/values/strings_es.arb @@ -531,6 +531,7 @@ "save_backup_password": "Asegúrese de haber guardado su contraseña de respaldo. No podrá importar sus archivos de respaldo sin él.", "save_backup_password_alert": "Guardar contraseña de respaldo", "save_to_downloads": "Guardar en Descargas", + "save_to_pm": "Guardar al administrador de contraseñas", "saved_the_trade_id": "He salvado comercial ID", "scan_qr_code": "Escanear código QR", "scan_qr_code_to_get_address": "Escanee el código QR para obtener la dirección", diff --git a/res/values/strings_fr.arb b/res/values/strings_fr.arb index a624e487c..c21f036bc 100644 --- a/res/values/strings_fr.arb +++ b/res/values/strings_fr.arb @@ -530,6 +530,7 @@ "save_backup_password": "Merci de vous assurer d'avoir bien sauvegardé votre mot de passe de sauvegarde. Vous ne pourrez pas restaurer vos fichiers de sauvegarde sans ce dernier.", "save_backup_password_alert": "Enregistrer le mot de passe de sauvegarde", "save_to_downloads": "Enregistrer dans les téléchargements", + "save_to_pm": "Enregistrer sur Motword Manager", "saved_the_trade_id": "J'ai sauvegardé l'ID d'échange", "scan_qr_code": "Scannez le QR code", "scan_qr_code_to_get_address": "Scannez le QR code pour obtenir l'adresse", diff --git a/res/values/strings_ha.arb b/res/values/strings_ha.arb index 68635aa5c..632fb2d60 100644 --- a/res/values/strings_ha.arb +++ b/res/values/strings_ha.arb @@ -532,6 +532,7 @@ "save_backup_password": "Da fatan za a tabbatar cewa kun adana kalmar sirrin ajiyar ku. Ba za ku iya shigo da fayilolin ajiyar ku ba tare da shi ba.", "save_backup_password_alert": "Ajiye kalmar sirri ta ajiya", "save_to_downloads": "Ajiye zuwa Zazzagewa", + "save_to_pm": "Ajiye zuwa Manajan Kalmar wucewa", "saved_the_trade_id": "Na ajiye ID na ciniki", "scan_qr_code": "Gani QR kodin", "scan_qr_code_to_get_address": "Duba lambar QR don samun adireshin", diff --git a/res/values/strings_hi.arb b/res/values/strings_hi.arb index 027b5448d..6991cc2e7 100644 --- a/res/values/strings_hi.arb +++ b/res/values/strings_hi.arb @@ -532,6 +532,7 @@ "save_backup_password": "कृपया सुनिश्चित करें कि आपने अपना बैकअप पासवर्ड सहेज लिया है। आप इसके बिना अपनी बैकअप फ़ाइलों को आयात नहीं कर पाएंगे।", "save_backup_password_alert": "बैकअप पासवर्ड सेव करें", "save_to_downloads": "डाउनलोड में सहेजें", + "save_to_pm": "पासवर्ड मैनेजर को सहेजें", "saved_the_trade_id": "मैंने व्यापार बचा लिया है ID", "scan_qr_code": "स्कैन क्यू आर कोड", "scan_qr_code_to_get_address": "पता प्राप्त करने के लिए QR कोड स्कैन करें", diff --git a/res/values/strings_hr.arb b/res/values/strings_hr.arb index 5edbc3633..eca04b375 100644 --- a/res/values/strings_hr.arb +++ b/res/values/strings_hr.arb @@ -530,6 +530,7 @@ "save_backup_password": "Molimo pobrinite se da spremite svoju lozinku za sigurnosnu kopiju. Bez nje nećete moći uvesti datoteke sigurnosne kopije.", "save_backup_password_alert": "Spremi lozinku za sigurnosnu kopiju", "save_to_downloads": "Spremi u Preuzimanja", + "save_to_pm": "Spremi u upravitelja lozinke", "saved_the_trade_id": "Spremio/la sam transakcijski ID", "scan_qr_code": "Skenirajte QR kod", "scan_qr_code_to_get_address": "Skeniraj QR kod za dobivanje adrese", diff --git a/res/values/strings_id.arb b/res/values/strings_id.arb index 2551506c0..a9ebbc4a7 100644 --- a/res/values/strings_id.arb +++ b/res/values/strings_id.arb @@ -533,6 +533,7 @@ "save_backup_password": "Pastikan Anda telah menyimpan kata sandi cadangan Anda. Anda tidak akan dapat mengimpor file cadangan Anda tanpa itu.", "save_backup_password_alert": "Simpan kata sandi cadangan", "save_to_downloads": "Simpan ke Unduhan", + "save_to_pm": "Simpan ke Manajer Kata Sandi", "saved_the_trade_id": "Saya telah menyimpan ID perdagangan", "scan_qr_code": "Scan kode QR untuk mendapatkan alamat", "scan_qr_code_to_get_address": "Pindai kode QR untuk mendapatkan alamat", diff --git a/res/values/strings_it.arb b/res/values/strings_it.arb index 9bb2ca1eb..25f79f313 100644 --- a/res/values/strings_it.arb +++ b/res/values/strings_it.arb @@ -532,6 +532,7 @@ "save_backup_password": "Gentilmente assicurati di aver salvato la password del tuo backup. Senza questa non sarai in grado di importare i tuoi file di backup.", "save_backup_password_alert": "Salva password Backup", "save_to_downloads": "Salva in Download", + "save_to_pm": "Salva su Password Manager", "saved_the_trade_id": "Ho salvato l'ID dello scambio", "scan_qr_code": "Scansiona il codice QR", "scan_qr_code_to_get_address": "Scansiona il codice QR per ottenere l'indirizzo", diff --git a/res/values/strings_ja.arb b/res/values/strings_ja.arb index 55af8cbd1..b24168946 100644 --- a/res/values/strings_ja.arb +++ b/res/values/strings_ja.arb @@ -531,6 +531,7 @@ "save_backup_password": "バックアップパスワードが保存されていることを確認してください。 それなしではバックアップファイルをインポートすることはできません。", "save_backup_password_alert": "バックアップパスワードを保存する", "save_to_downloads": "ダウンロードに保存", + "save_to_pm": "パスワードマネージャーに保存します", "saved_the_trade_id": "取引IDを保存しました", "scan_qr_code": "QRコードをスキャン", "scan_qr_code_to_get_address": "QRコードをスキャンして住所を取得します", diff --git a/res/values/strings_ko.arb b/res/values/strings_ko.arb index 3f710becb..dd8773bb8 100644 --- a/res/values/strings_ko.arb +++ b/res/values/strings_ko.arb @@ -531,6 +531,7 @@ "save_backup_password": "백업 암호를 저장했는지 확인하십시오. 그것 없이는 백업 파일을 가져올 수 없습니다.", "save_backup_password_alert": "백업 비밀번호 저장", "save_to_downloads": "다운로드에 저장", + "save_to_pm": "비밀번호 관리자에게 저장하십시오", "saved_the_trade_id": "거래 ID를 저장했습니다", "scan_qr_code": "QR 코드 스캔", "scan_qr_code_to_get_address": "QR 코드를 스캔하여 주소를 얻습니다.", diff --git a/res/values/strings_my.arb b/res/values/strings_my.arb index 63c7f4903..4c76bbe88 100644 --- a/res/values/strings_my.arb +++ b/res/values/strings_my.arb @@ -530,6 +530,7 @@ "save_backup_password": "သင်၏ အရန်စကားဝှက်ကို သိမ်းဆည်းထားကြောင်း သေချာပါစေ။ ၎င်းမပါဘဲ သင်၏ အရန်ဖိုင်များကို တင်သွင်းနိုင်မည် မဟုတ်ပါ။", "save_backup_password_alert": "အရန်စကားဝှက်ကို သိမ်းဆည်းပါ။", "save_to_downloads": "ဒေါင်းလုဒ်များထံ သိမ်းဆည်းပါ။", + "save_to_pm": "စကားဝှက်မန်နေဂျာကိုသိမ်းဆည်းပါ", "saved_the_trade_id": "ကုန်သွယ်မှု ID ကို သိမ်းဆည်းပြီးပါပြီ။", "scan_qr_code": "QR ကုဒ်ကို စကင်န်ဖတ်ပါ။", "scan_qr_code_to_get_address": "လိပ်စာရယူရန် QR ကုဒ်ကို စကင်န်ဖတ်ပါ။", diff --git a/res/values/strings_nl.arb b/res/values/strings_nl.arb index c75309aa6..a4642cadb 100644 --- a/res/values/strings_nl.arb +++ b/res/values/strings_nl.arb @@ -530,6 +530,7 @@ "save_backup_password": "Zorg ervoor dat u uw reservewachtwoord heeft opgeslagen. Zonder dit kunt u uw back-upbestanden niet importeren.", "save_backup_password_alert": "Bewaar back-upwachtwoord", "save_to_downloads": "Opslaan in downloads", + "save_to_pm": "Opslaan op wachtwoordbeheerder", "saved_the_trade_id": "Ik heb de ruil-ID opgeslagen", "scan_qr_code": "Scan QR-code", "scan_qr_code_to_get_address": "Scan de QR-code om het adres te krijgen", diff --git a/res/values/strings_pl.arb b/res/values/strings_pl.arb index c78daa836..cd0bebf6f 100644 --- a/res/values/strings_pl.arb +++ b/res/values/strings_pl.arb @@ -530,6 +530,7 @@ "save_backup_password": "Upewnij się, że zapisałeś swoje hasło kopii zapasowej. Bez tego nie będziesz mógł zaimportować pliku kopii zapasowej.", "save_backup_password_alert": "Zapisz hasło kopii zapasowej", "save_to_downloads": "Zapisz w Pobranych", + "save_to_pm": "Zapisz w menedżerze haseł", "saved_the_trade_id": "Zapisałem ID", "scan_qr_code": "Skanowania QR code", "scan_qr_code_to_get_address": "Zeskanuj kod QR, aby uzyskać adres", diff --git a/res/values/strings_pt.arb b/res/values/strings_pt.arb index 710fd5eea..15c73e343 100644 --- a/res/values/strings_pt.arb +++ b/res/values/strings_pt.arb @@ -532,6 +532,7 @@ "save_backup_password": "Certifique-se de que salvou sua senha de backup. Você não poderá importar seus arquivos de backup sem ele.", "save_backup_password_alert": "Salvar senha de backup", "save_to_downloads": "Salvar em Downloads", + "save_to_pm": "Salvar no gerenciador de senhas", "saved_the_trade_id": "ID da troca salvo", "scan_qr_code": "Escanear código QR", "scan_qr_code_to_get_address": "Digitalize o código QR para obter o endereço", diff --git a/res/values/strings_ru.arb b/res/values/strings_ru.arb index 4780dde5d..3478c5332 100644 --- a/res/values/strings_ru.arb +++ b/res/values/strings_ru.arb @@ -531,6 +531,7 @@ "save_backup_password": "Убедитесь, что вы сохранили пароль резервной копии. Без него вы не сможете импортировать файлы резервных копий.", "save_backup_password_alert": "Сохранить пароль резервной копии", "save_to_downloads": "Сохранить в загрузках", + "save_to_pm": "Сохранить в диспетчере паролей", "saved_the_trade_id": "Я сохранил ID сделки", "scan_qr_code": "Сканировать QR-код", "scan_qr_code_to_get_address": "Отсканируйте QR-код для получения адреса", diff --git a/res/values/strings_th.arb b/res/values/strings_th.arb index 945cf88de..649ed3936 100644 --- a/res/values/strings_th.arb +++ b/res/values/strings_th.arb @@ -530,6 +530,7 @@ "save_backup_password": "โปรดตรวจสอบให้แน่ใจว่าคุณได้บันทึกรหัสผ่านสำรองข้อมูลแล้ว คุณจะไม่สามารถนำเข้าไฟล์สำรองข้อมูลของคุณโดยไม่ใช้รหัสผ่านนั้น", "save_backup_password_alert": "บันทึกรหัสผ่านสำรอง", "save_to_downloads": "บันทึกลงดาวน์โหลด", + "save_to_pm": "บันทึกลงในตัวจัดการรหัสผ่าน", "saved_the_trade_id": "ฉันได้บันทึก ID ของการซื้อขายแล้ว", "scan_qr_code": "สแกนรหัส QR", "scan_qr_code_to_get_address": "สแกน QR code เพื่อรับที่อยู่", diff --git a/res/values/strings_tl.arb b/res/values/strings_tl.arb index 6f20a274f..3c965392d 100644 --- a/res/values/strings_tl.arb +++ b/res/values/strings_tl.arb @@ -530,6 +530,7 @@ "save_backup_password": "Mangyaring tiyaking nai -save mo ang iyong backup password. Hindi mo mai -import ang iyong mga backup na file nang wala ito.", "save_backup_password_alert": "I -save ang backup password", "save_to_downloads": "I -save sa mga pag -download", + "save_to_pm": "I -save sa manager ng password", "saved_the_trade_id": "Nai -save ko ang trade ID", "scan_qr_code": "I -scan ang QR Code", "scan_qr_code_to_get_address": "I -scan ang QR code upang makuha ang address", diff --git a/res/values/strings_tr.arb b/res/values/strings_tr.arb index e53f0a2bf..2f92cb856 100644 --- a/res/values/strings_tr.arb +++ b/res/values/strings_tr.arb @@ -530,6 +530,7 @@ "save_backup_password": "Lütfen yedekleme parolanı kaydettiğinden emin ol. Bu parola olmadan yedekleme dosyasını içe aktaramazsın.", "save_backup_password_alert": "Yedek parolasını kaydet", "save_to_downloads": "İndirilenlere Kaydet", + "save_to_pm": "Şifre Yöneticisine Kaydet", "saved_the_trade_id": "Takas ID'imi kaydettim", "scan_qr_code": "QR kodunu tarayın", "scan_qr_code_to_get_address": "Adresi getirmek için QR kodunu tara", diff --git a/res/values/strings_uk.arb b/res/values/strings_uk.arb index c2f95e560..33c4ad715 100644 --- a/res/values/strings_uk.arb +++ b/res/values/strings_uk.arb @@ -531,6 +531,7 @@ "save_backup_password": "Переконайтеся, що ви зберегли свій пароль резервної копії. Без нього ви не зможете імпортувати файли резервних копій.", "save_backup_password_alert": "Зберегти пароль резервної копії", "save_to_downloads": "Зберегти до завантажень", + "save_to_pm": "Зберегти до менеджера паролів", "saved_the_trade_id": "Я зберіг ID операції", "scan_qr_code": "Відскануйте QR-код", "scan_qr_code_to_get_address": "Скануйте QR-код для одержання адреси", diff --git a/res/values/strings_ur.arb b/res/values/strings_ur.arb index 17d8e691e..6ad205bb4 100644 --- a/res/values/strings_ur.arb +++ b/res/values/strings_ur.arb @@ -532,6 +532,7 @@ "save_backup_password": "براہ کرم یقینی بنائیں کہ آپ نے اپنا بیک اپ پاس ورڈ محفوظ کر لیا ہے۔ آپ اس کے بغیر اپنی بیک اپ فائلیں درآمد نہیں کر سکیں گے۔", "save_backup_password_alert": "بیک اپ پاس ورڈ محفوظ کریں۔", "save_to_downloads": "۔ﮟﯾﺮﮐ ﻅﻮﻔﺤﻣ ﮟﯿﻣ ﺯﮈﻮﻟ ﻥﺅﺍﮈ", + "save_to_pm": "پاس ورڈ مینیجر کو محفوظ کریں", "saved_the_trade_id": "میں نے تجارتی ID محفوظ کر لی ہے۔", "scan_qr_code": "پتہ حاصل کرنے کے لیے QR کوڈ اسکین کریں۔", "scan_qr_code_to_get_address": "پتہ حاصل کرنے کے لئے QR کوڈ کو اسکین کریں", diff --git a/res/values/strings_yo.arb b/res/values/strings_yo.arb index 5838b1dba..5a4708139 100644 --- a/res/values/strings_yo.arb +++ b/res/values/strings_yo.arb @@ -531,6 +531,7 @@ "save_backup_password": "Ẹ jọ̀wọ́ dájú pé ẹ ti pamọ́ ọ̀rọ̀ aṣínà ti ẹ̀dà nípamọ́ yín. Ti ẹ kò bá ni í, ẹ kò lè ṣí àwọn àkọsílẹ̀ nípamọ́ yín.", "save_backup_password_alert": "Pamọ́ ọ̀rọ̀ aṣínà ti ẹ̀dà", "save_to_downloads": "Fipamọ si Awọn igbasilẹ", + "save_to_pm": "Fipamọ si oluṣakoso ọrọ igbaniwọle", "saved_the_trade_id": "Mo ti pamọ́ àmì ìdánimọ̀ pàṣípààrọ̀", "scan_qr_code": "Yan QR koodu", "scan_qr_code_to_get_address": "Ṣayẹwo koodu QR naa lati gba adirẹsi naa", diff --git a/res/values/strings_zh.arb b/res/values/strings_zh.arb index 4c7a10883..7153b6ea3 100644 --- a/res/values/strings_zh.arb +++ b/res/values/strings_zh.arb @@ -530,6 +530,7 @@ "save_backup_password": "请确保您已保存备份密码。 沒有它,您将无法导入备份文件。", "save_backup_password_alert": "保存备份密码", "save_to_downloads": "保存到下载", + "save_to_pm": "保存到密码管理器", "saved_the_trade_id": "我已经保存了交易编号", "scan_qr_code": "扫描二维码", "scan_qr_code_to_get_address": "扫描二维码获取地址",