mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-21 06:18:42 +02:00
CAKE-360 | applied localization to yat_popup.dart, first_introduction.dart, second_introduction.dart, third_introduction.dart, choose_yat_address_alert.dart and extract_address_from_parsed.dart
This commit is contained in:
@@ -101,7 +101,7 @@ class QRWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 10, bottom: 10),
|
||||
padding: EdgeInsets.only(top: 8, bottom: 8),
|
||||
child: Builder(
|
||||
builder: (context) => Observer(
|
||||
builder: (context) => GestureDetector(
|
||||
|
||||
@@ -111,8 +111,7 @@ class ChooseYatAddressButtonsState extends State<ChooseYatAddressButtons> {
|
||||
if (itemCount > 3) CakeScrollbar(
|
||||
backgroundHeight: backgroundHeight,
|
||||
thumbHeight: thumbHeight,
|
||||
fromTop: fromTop,
|
||||
//rightOffset: -15
|
||||
fromTop: fromTop
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
@@ -25,8 +25,8 @@ Future<String> extractAddressFromParsed(
|
||||
break;
|
||||
case ParseFrom.yatRecord:
|
||||
if (parsedAddress.name.isEmpty) {
|
||||
title = 'Yat error';
|
||||
content = 'No addresses linked with this Yat. Try another Yat';
|
||||
title = S.of(context).yat_error;
|
||||
content = S.of(context).yat_error_content;
|
||||
address = parsedAddress.addresses.first;
|
||||
break;
|
||||
}
|
||||
@@ -39,7 +39,7 @@ Future<String> extractAddressFromParsed(
|
||||
break;
|
||||
}
|
||||
|
||||
content += '\nPlease choose the address:';
|
||||
content += S.of(context).choose_address;
|
||||
|
||||
address = await showPopUp<String>(
|
||||
context: context,
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:cake_wallet/palette.dart';
|
||||
import 'package:lottie/lottie.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class FirstIntroduction extends StatelessWidget {
|
||||
FirstIntroduction({this.onClose, this.onNext});
|
||||
@@ -39,7 +40,7 @@ class FirstIntroduction extends StatelessWidget {
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
'Send and receive crypto more easily with Yat',
|
||||
S.of(context).yat_alert_title,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
@@ -52,7 +53,7 @@ class FirstIntroduction extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 20),
|
||||
child: Text(
|
||||
'Cake Wallet users can now send and receive all their favorite currencies with a one-of-a-kind emoji-based username.',
|
||||
S.of(context).yat_alert_content,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
@@ -73,7 +74,7 @@ class FirstIntroduction extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
PrimaryButton(
|
||||
text: 'Next',
|
||||
text: S.of(context).restore_next,
|
||||
textColor: Colors.white,
|
||||
color: Palette.protectiveBlue,
|
||||
onPressed: onNext
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:cake_wallet/palette.dart';
|
||||
import 'package:lottie/lottie.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class SecondIntroduction extends StatelessWidget {
|
||||
SecondIntroduction({this.onClose, this.onNext});
|
||||
@@ -38,7 +39,7 @@ class SecondIntroduction extends StatelessWidget {
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
'One emoji address to rule them all',
|
||||
S.of(context).second_intro_title,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
@@ -51,7 +52,7 @@ class SecondIntroduction extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 20),
|
||||
child: Text(
|
||||
'Your Yat is a single unique emoji address that replaces all of your long hexadecimal addresses for all of your currencies.',
|
||||
S.of(context).second_intro_content,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
@@ -72,7 +73,7 @@ class SecondIntroduction extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
PrimaryButton(
|
||||
text: 'Next',
|
||||
text: S.of(context).restore_next,
|
||||
textColor: Colors.white,
|
||||
color: Palette.protectiveBlue,
|
||||
onPressed: onNext
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:cake_wallet/palette.dart';
|
||||
import 'package:lottie/lottie.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class ThirdIntroduction extends StatelessWidget {
|
||||
ThirdIntroduction({this.onClose, this.onGet, this.onConnect});
|
||||
@@ -39,7 +40,7 @@ class ThirdIntroduction extends StatelessWidget {
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
'Yat plays nicely with others',
|
||||
S.of(context).third_intro_title,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
@@ -52,7 +53,7 @@ class ThirdIntroduction extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 20),
|
||||
child: Text(
|
||||
'Yats live outside of Cake Wallet, too. Any wallet address on earth can be replaced with a Yat!',
|
||||
S.of(context).third_intro_content,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
@@ -73,7 +74,7 @@ class ThirdIntroduction extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
PrimaryIconButton(
|
||||
text: 'Get your Yat',
|
||||
text: S.of(context).get_your_yat,
|
||||
textColor: Colors.white,
|
||||
color: Palette.protectiveBlue,
|
||||
borderColor: Palette.protectiveBlue,
|
||||
@@ -86,7 +87,7 @@ class ThirdIntroduction extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 12),
|
||||
child: PrimaryIconButton(
|
||||
text: 'Connect an existing Yat',
|
||||
text: S.of(context).connect_an_existing_yat,
|
||||
textColor: Colors.black,
|
||||
color: Palette.blueAlice,
|
||||
borderColor: Palette.blueAlice,
|
||||
|
||||
@@ -11,6 +11,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:animate_do/animate_do.dart';
|
||||
import 'package:flutter_mobx/flutter_mobx.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
class YatPopup extends StatelessWidget {
|
||||
YatPopup({this.dashboardViewModel, this.onClose})
|
||||
@@ -91,7 +92,7 @@ class YatPopup extends StatelessWidget {
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
'Your wallet address can be emojified.',
|
||||
S.of(context).yat_popup_title,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
@@ -104,7 +105,7 @@ class YatPopup extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 20),
|
||||
child: Text(
|
||||
'You can now send and receive crypto in Cake Wallet with your Yat - a short, emoji-based username. Manage Yats at any time on the settings screen',
|
||||
S.of(context).yat_popup_content,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
@@ -119,7 +120,7 @@ class YatPopup extends StatelessWidget {
|
||||
)
|
||||
),
|
||||
PrimaryButton(
|
||||
text: 'Learn More',
|
||||
text: S.of(context).learn_more,
|
||||
textColor: Colors.white,
|
||||
color: Palette.protectiveBlue,
|
||||
onPressed: () => dashboardViewModel
|
||||
|
||||
Reference in New Issue
Block a user