Skip to content

Commit

Permalink
fix linux welcome screen text button (#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii-Borodenko authored Jan 27, 2025
1 parent 55d8238 commit 89f7b48
Show file tree
Hide file tree
Showing 30 changed files with 35 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ Route<dynamic> createRoute(RouteSettings settings) {

switch (settings.name) {
case Routes.welcome:
return MaterialPageRoute<void>(builder: (_) => CreatePinWelcomePage());
return MaterialPageRoute<void>(
builder: (_) => CreatePinWelcomePage(SettingsStoreBase.walletPasswordDirectInput));

case Routes.welcomeWallet:
if (SettingsStoreBase.walletPasswordDirectInput) {
Expand Down
6 changes: 5 additions & 1 deletion lib/src/screens/welcome/create_pin_welcome_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import 'package:cake_wallet/themes/extensions/new_wallet_theme.dart';
import 'package:cake_wallet/themes/extensions/wallet_list_theme.dart';

class CreatePinWelcomePage extends BasePage {
CreatePinWelcomePage(this.isWalletPasswordDirectInput);

final bool isWalletPasswordDirectInput;

static const aspectRatioImage = 1.25;
final welcomeImageLight = Image.asset('assets/images/welcome_light.png');
final welcomeImageDark = Image.asset('assets/images/welcome.png');
Expand Down Expand Up @@ -124,7 +128,7 @@ class CreatePinWelcomePage extends BasePage {
key: ValueKey('create_pin_welcome_page_create_a_pin_button_key'),
onPressed: () => Navigator.pushNamed(context, Routes.welcomeWallet),
image: newWalletImage,
text: S.current.set_a_pin,
text: isWalletPasswordDirectInput ? S.current.set_up_a_wallet : S.current.set_a_pin,
color: Theme.of(context)
.extension<WalletListTheme>()!
.createNewWalletButtonBackgroundColor,
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ar.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "تم تعطيل نشرة صحة الخدمة",
"service_health_disabled_message": "هذه هي صفحة نشرة صحة الخدمة ، يمكنك تمكين هذه الصفحة ضمن الإعدادات -> الخصوصية",
"set_a_pin": "تعيين دبوس",
"set_up_a_wallet": "قم بإعداد محفظة",
"settings": "إعدادات",
"settings_all": "الكل",
"settings_allow_biometrical_authentication": "السماح بالمصادقة البيومترية",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_bg.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Service Health Bulletin е деактивиран",
"service_health_disabled_message": "Това е страницата на Bulletin на Service Health, можете да активирате тази страница в Настройки -> Поверителност",
"set_a_pin": "Поставете щифт",
"set_up_a_wallet": "Настройте портфейл",
"settings": "Настройки",
"settings_all": "Всичко",
"settings_allow_biometrical_authentication": "Позволяване на биометрично удостоверяване.",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_cs.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Bulletin zdraví služeb je deaktivován",
"service_health_disabled_message": "Toto je stránka Bulletin Service Health Bulletin, můžete tuto stránku povolit v rámci nastavení -> Ochrana osobních údajů",
"set_a_pin": "Nastavte špendlík",
"set_up_a_wallet": "Nastavte peněženku",
"settings": "Nastavení",
"settings_all": "VŠE",
"settings_allow_biometrical_authentication": "Povolit biometrické ověření",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@
"service_health_disabled": "Service Health Bulletin ist deaktiviert",
"service_health_disabled_message": "Dies ist die Seite \"Service Health Bulletin\", können Sie diese Seite unter Einstellungen -> Privatsphäre aktivieren",
"set_a_pin": "Setzen Sie einen Stift",
"set_up_a_wallet": "Eine Brieftasche einrichten",
"settings": "Einstellungen",
"settings_all": "ALLE",
"settings_allow_biometrical_authentication": "Biometrische Authentifizierung zulassen",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@
"service_health_disabled": "Service Health Bulletin is disabled",
"service_health_disabled_message": "This is the service health bulletin page, you can enable this page under Settings -> Privacy",
"set_a_pin": "Set a PIN",
"set_up_a_wallet": "Set up a Wallet",
"settings": "Settings",
"settings_all": "ALL",
"settings_allow_biometrical_authentication": "Allow biometrical authentication",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@
"service_health_disabled": "El boletín de salud del servicio está deshabilitado",
"service_health_disabled_message": "Esta es la página del Boletín de Salud del Servicio, puede habilitar esta página en Configuración -> Privacidad",
"set_a_pin": "Establecer un alfiler",
"set_up_a_wallet": "Establecer una billetera",
"settings": "Configuraciones",
"settings_all": "TODOS",
"settings_allow_biometrical_authentication": "Permitir autenticación biométrica",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Le bulletin de santé du service est désactivé.",
"service_health_disabled_message": "Ceci est la page du Bulletin de santé du service, vous pouvez activer cette page sous Paramètres -> Confidentialité",
"set_a_pin": "Définir un code PIN",
"set_up_a_wallet": "Configurer un portefeuille",
"settings": "Paramètres",
"settings_all": "TOUT",
"settings_allow_biometrical_authentication": "Autoriser l'authentification biométrique",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ha.arb
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@
"service_health_disabled": "Ba a kashe Bayar da Kiwon Lafiya",
"service_health_disabled_message": "Wannan shafin yanar gizo mai kula da sabis ne, zaka iya kunna wannan shafin a karkashin saiti -> Sirri",
"set_a_pin": "Saita PIN",
"set_up_a_wallet": "Kafa walat",
"settings": "Saiti",
"settings_all": "DUK",
"settings_allow_biometrical_authentication": "Bada izinin tantance sawun yatsa",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_hi.arb
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@
"service_health_disabled": "सेवा स्वास्थ्य बुलेटिन अक्षम है",
"service_health_disabled_message": "यह सेवा स्वास्थ्य बुलेटिन पृष्ठ है, आप इस पृष्ठ को सेटिंग्स के तहत सक्षम कर सकते हैं -> गोपनीयता",
"set_a_pin": "एक पिन सेट करना",
"set_up_a_wallet": "एक बटुआ सेट करें",
"settings": "समायोजन",
"settings_all": "सब",
"settings_allow_biometrical_authentication": "बायोमेट्रिक प्रमाणीकरण की अनुमति दें",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_hr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Zdravstveni bilten usluge je onemogućen",
"service_health_disabled_message": "Ovo je stranica zdravstvenog biltena o usluzi, možete omogućiti ovu stranicu pod postavkama -> privatnost",
"set_a_pin": "Postavite pin",
"set_up_a_wallet": "Postavite novčanik",
"settings": "Postavke",
"settings_all": "SVE",
"settings_allow_biometrical_authentication": "Dopusti biometrijsku autentifikaciju",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_hy.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Ծառայության առողջությունը անջատված է",
"service_health_disabled_message": "Սա ծառայության առողջության էջն է, դուք կարող եք այս էջը միացնել Կարգավորումներ -> Գաղտնիություն",
"set_a_pin": "Սեփական քորոց սահմանեք",
"set_up_a_wallet": "Ստեղծեք դրամապանակ",
"settings": "Կարգավորումներ",
"settings_all": "Բոլորը",
"settings_allow_biometrical_authentication": "Թույլատրել կենսաչափական վավերացում",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_id.arb
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@
"service_health_disabled": "Buletin Kesehatan Layanan dinonaktifkan",
"service_health_disabled_message": "Ini adalah halaman Buletin Kesehatan Layanan, Anda dapat mengaktifkan halaman ini di bawah Pengaturan -> Privasi",
"set_a_pin": "Atur pin",
"set_up_a_wallet": "Siapkan dompet",
"settings": "Pengaturan",
"settings_all": "SEMUA",
"settings_allow_biometrical_authentication": "Izinkan otentikasi biometrik",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_it.arb
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@
"service_health_disabled": "Il Bollettino sanitario di servizio è disabilitato",
"service_health_disabled_message": "Questa è la pagina del Bollettino sanitario del servizio, è possibile abilitare questa pagina in Impostazioni -> Privacy",
"set_a_pin": "Imposta un pin",
"set_up_a_wallet": "Imposta un portafoglio",
"settings": "Impostazioni",
"settings_all": "TUTTO",
"settings_allow_biometrical_authentication": "Consenti autenticazione biometrica",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ja.arb
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@
"service_health_disabled": "サービスヘルス速報は無効です",
"service_health_disabled_message": "これはService Health Bulletinページです。設定の下でこのページを有効にすることができます - >プライバシー",
"set_a_pin": "ピンを設定します",
"set_up_a_wallet": "ウォレットをセットアップします",
"settings": "設定",
"settings_all": "すべて",
"settings_allow_biometrical_authentication": "生体認証を許可する",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ko.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "서비스 건강 게시판이 장애가되었습니다",
"service_health_disabled_message": "이것은 서비스 건강 게시판 페이지입니다. 설정 에서이 페이지를 활성화 할 수 있습니다 -> 개인 정보",
"set_a_pin": "핀을 설정하십시오",
"set_up_a_wallet": "지갑을 설정하십시오",
"settings": "설정",
"settings_all": "모든",
"settings_allow_biometrical_authentication": "생체 인증 허용",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_my.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "ဝန်ဆောင်မှုကျန်းမာရေးစာစောင်အားပိတ်ထားသည်",
"service_health_disabled_message": "ဤသည်မှာ 0 န်ဆောင်မှုကျန်းမာရေးစာစောင်စာမျက်နှာတွင်ဤစာမျက်နှာကို Settings အောက်တွင်ဖွင့်ထားနိုင်သည်",
"set_a_pin": "PIN နံပါတ်ကိုသတ်မှတ်ပါ",
"set_up_a_wallet": "ပိုက်ဆံအိတ်တစ်ခု set up",
"settings": "ဆက်တင်များ",
"settings_all": "အားလုံး",
"settings_allow_biometrical_authentication": "ဇီဝဗေဒဆိုင်ရာ အထောက်အထားစိစစ်ခြင်းကို ခွင့်ပြုပါ။",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_nl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Service Health Bulletin is uitgeschakeld",
"service_health_disabled_message": "Dit is de Service Health Bulletin -pagina, u kunt deze pagina instellingen inschakelen -> Privacy",
"set_a_pin": "Zet een speld",
"set_up_a_wallet": "Zet een portemonnee op",
"settings": "Instellingen",
"settings_all": "ALLE",
"settings_allow_biometrical_authentication": "Biometrische authenticatie toestaan",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_pl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Biuletyn zdrowia usług jest wyłączony",
"service_health_disabled_message": "To jest strona Biuletynu Zdrowie Service, możesz włączyć tę stronę w Ustawieniach -> Prywatność",
"set_a_pin": "Ustaw szpilkę",
"set_up_a_wallet": "Ustaw portfel",
"settings": "Ustawienia",
"settings_all": "Wszystkie",
"settings_allow_biometrical_authentication": "Zezwalaj na uwierzytelnianie biometryczne",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_pt.arb
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@
"service_health_disabled": "O Boletim de Saúde de Serviço está desativado",
"service_health_disabled_message": "Esta é a página do Boletim de Saúde de Serviço, você pode ativar esta página em Configurações -> Privacidade",
"set_a_pin": "Defina um pino",
"set_up_a_wallet": "Configurar uma carteira",
"settings": "Configurações",
"settings_all": "Tudo",
"settings_allow_biometrical_authentication": "Permitir autenticação biométrica",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ru.arb
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@
"service_health_disabled": "Бюллетень для здоровья обслуживания инвалид",
"service_health_disabled_message": "Это страница бюллетени обслуживания услуг, вы можете включить эту страницу в соответствии с настройками -> Конфиденциальность",
"set_a_pin": "Установить булавку",
"set_up_a_wallet": "Установить кошелек",
"settings": "Настройки",
"settings_all": "ВСЕ",
"settings_allow_biometrical_authentication": "Включить биометрическую аутентификацию",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_th.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Service Health Bulletin ถูกปิดใช้งาน",
"service_health_disabled_message": "นี่คือหน้า Service Health Bulletin คุณสามารถเปิดใช้งานหน้านี้ภายใต้การตั้งค่า -> ความเป็นส่วนตัว",
"set_a_pin": "ตั้งพิน",
"set_up_a_wallet": "ตั้งค่ากระเป๋าเงิน",
"settings": "การตั้งค่า",
"settings_all": "ทั้งหมด",
"settings_allow_biometrical_authentication": "อนุญาตให้ใช้การยืนยันตัวตนทางระบบชีวภาพ",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_tl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Hindi pinagana ang Service Health Bulletin",
"service_health_disabled_message": "Ito ang pahina ng Service Health Bulletin, maaari mong paganahin ang pahinang ito sa ilalim ng Mga Setting -> Pagkapribado",
"set_a_pin": "Magtakda ng isang pin",
"set_up_a_wallet": "Mag -set up ng isang pitaka",
"settings": "Mga Setting",
"settings_all": "LAHAT",
"settings_allow_biometrical_authentication": "Payagan ang biometrical authentication",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_tr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "Service Health Bülten devre dışı bırakıldı",
"service_health_disabled_message": "Bu Hizmet Sağlığı Bülten Sayfası, bu sayfayı Ayarlar -> Gizlilik altında etkinleştirebilirsiniz",
"set_a_pin": "Bir pim ayarlamak",
"set_up_a_wallet": "Bir cüzdan kurun",
"settings": "ayarlar",
"settings_all": "HEPSİ",
"settings_allow_biometrical_authentication": "Biyometrik doğrulamaya izin ver",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_uk.arb
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@
"service_health_disabled": "Вісник охорони здоров'я інвалідів",
"service_health_disabled_message": "Це сторінка бюлетеня Health Service, ви можете включити цю сторінку в налаштуваннях -> конфіденційність",
"set_a_pin": "Встановити PIN",
"set_up_a_wallet": "Встановіть гаманець",
"settings": "Налаштування",
"settings_all": "ВСІ",
"settings_allow_biometrical_authentication": "Включити біометричну аутентифікацію",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_ur.arb
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@
"service_health_disabled": "سروس ہیلتھ بلیٹن غیر فعال ہے",
"service_health_disabled_message": "یہ سروس ہیلتھ بلیٹن پیج ہے ، آپ اس صفحے کو ترتیبات کے تحت اہل بنا سکتے ہیں -> رازداری",
"set_a_pin": "ایک پن مرتب کریں",
"set_up_a_wallet": "ایک پرس لگائیں",
"settings": "ترتیبات",
"settings_all": "تمام",
"settings_allow_biometrical_authentication": "بایومیٹریکل تصدیق کی اجازت دیں۔",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_vi.arb
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@
"service_health_disabled": "Thông báo sức khỏe dịch vụ bị vô hiệu hóa",
"service_health_disabled_message": "Đây là trang thông báo sức khỏe dịch vụ, bạn có thể kích hoạt trang này trong Cài đặt -> Quyền riêng tư",
"set_a_pin": "Đặt một pin",
"set_up_a_wallet": "Thiết lập ví",
"settings": "Cài đặt",
"settings_all": "TẤT CẢ",
"settings_allow_biometrical_authentication": "Cho phép xác thực sinh trắc học",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_yo.arb
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@
"service_health_disabled": "IPỌRỌ IWE TI AGBARA TI O LE RẸ",
"service_health_disabled_message": "Eyi ni oju-iwe Iwe itẹlera Iṣẹ Ile-iṣẹ Iṣẹ: O le mu oju-iwe yii ṣiṣẹ labẹ Eto -> Asiri",
"set_a_pin": "Ṣeto PIN kan",
"set_up_a_wallet": "Ṣeto apamọwọ kan",
"settings": "Awọn aseṣe",
"settings_all": "Gbogbo",
"settings_allow_biometrical_authentication": "Fi àyè gba ìfẹ̀rílàdí biometrical",
Expand Down
1 change: 1 addition & 0 deletions res/values/strings_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@
"service_health_disabled": "服务健康公告被禁用",
"service_health_disabled_message": "这是服务健康公告页面,您可以在设置 - >隐私下启用此页面",
"set_a_pin": "设置一个别针",
"set_up_a_wallet": "设置钱包",
"settings": "设置",
"settings_all": "全部",
"settings_allow_biometrical_authentication": "允许生物识别认证",
Expand Down

0 comments on commit 89f7b48

Please sign in to comment.