Fix signup page (#419)

This commit is contained in:
Godwin Asuquo 2022-07-20 16:01:49 +03:00 committed by GitHub
parent 8b4fa5a12d
commit c23c6482bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 35 additions and 23 deletions

View file

@ -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}'),
],
),

View file

@ -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",

View file

@ -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",