mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 04:19:36 +00:00
Fix signup page (#419)
This commit is contained in:
parent
8b4fa5a12d
commit
c23c6482bb
15 changed files with 35 additions and 23 deletions
|
@ -9,10 +9,12 @@ import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
|
|||
import 'package:cake_wallet/typography.dart';
|
||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||
import 'package:cake_wallet/view_model/ionia/ionia_auth_view_model.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:flutter_mobx/flutter_mobx.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class IoniaCreateAccountPage extends BasePage {
|
||||
IoniaCreateAccountPage(this._authViewModel)
|
||||
|
@ -30,6 +32,9 @@ class IoniaCreateAccountPage extends BasePage {
|
|||
final FocusNode _emailFocus;
|
||||
final TextEditingController _emailController;
|
||||
|
||||
static const privacyPolicyUrl = 'https://ionia.docsend.com/view/jaqsmbq9w7dzvnqf';
|
||||
static const termsAndConditionsUrl = 'https://ionia.docsend.com/view/hi9awnwxr6mqgiqj';
|
||||
|
||||
@override
|
||||
Widget middle(BuildContext context) {
|
||||
return Text(
|
||||
|
@ -102,6 +107,10 @@ class IoniaCreateAccountPage extends BasePage {
|
|||
color: Theme.of(context).accentTextTheme.body2.color,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () async {
|
||||
if (await canLaunch(termsAndConditionsUrl)) await launch(termsAndConditionsUrl);
|
||||
},
|
||||
),
|
||||
TextSpan(text: ' ${S.of(context).and} '),
|
||||
TextSpan(
|
||||
|
@ -110,7 +119,10 @@ class IoniaCreateAccountPage extends BasePage {
|
|||
color: Theme.of(context).accentTextTheme.body2.color,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () async {
|
||||
if (await canLaunch(privacyPolicyUrl)) await launch(privacyPolicyUrl);
|
||||
}),
|
||||
TextSpan(text: ' ${S.of(context).by_cake_pay}'),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -244,7 +244,7 @@
|
|||
"settings_only_transactions" : "Only transactions",
|
||||
"settings_none" : "None",
|
||||
"settings_support" : "Support",
|
||||
"settings_terms_and_conditions" : "Terms and conditions",
|
||||
"settings_terms_and_conditions" : "Terms and Conditions",
|
||||
"pin_is_incorrect" : "PIN is incorrect",
|
||||
|
||||
|
||||
|
@ -538,7 +538,7 @@
|
|||
"cake_pay_account_note": "Make an account to see the available cards. Some are even available at a discount!",
|
||||
"already_have_account": "Already have an account?",
|
||||
"create_account": "Create Account",
|
||||
"privacy_policy": "Privacy policy",
|
||||
"privacy_policy": "Privacy Policy",
|
||||
"welcome_to_cakepay": "Welcome to Cake Pay!",
|
||||
"sign_up": "Sign Up",
|
||||
"forgot_password": "Forgot Password",
|
||||
|
|
|
@ -242,7 +242,7 @@
|
|||
"settings_only_transactions" : "Seulement les transactions",
|
||||
"settings_none" : "Rien",
|
||||
"settings_support" : "Support",
|
||||
"settings_terms_and_conditions" : "Termes et conditions",
|
||||
"settings_terms_and_conditions" : "Termes et Conditions",
|
||||
"pin_is_incorrect" : "Le code PIN est incorrect",
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue