Fixes. Changed terms of use text.

This commit is contained in:
M
2021-02-01 20:12:37 +02:00
parent 14620ddf0c
commit 0bc804c284
12 changed files with 252 additions and 70 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
import 'dart:io';
import 'package:cake_wallet/palette.dart';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart';
@@ -28,7 +29,8 @@ class BackupPage extends BasePage {
Widget trailing(BuildContext context) => TrailButton(
caption: S.of(context).change_password,
onPressed: () =>
Navigator.of(context).pushNamed(Routes.editBackupPassword));
Navigator.of(context).pushNamed(Routes.editBackupPassword),
textColor: Palette.blueCraiola);
@override
Widget body(BuildContext context) {
@@ -38,7 +38,6 @@ class DisclaimerPageBody extends StatefulWidget {
}
class DisclaimerBodyState extends State<DisclaimerPageBody> {
static const xmrtoUrl = 'https://xmr.to/terms-of-service';
static const changenowUrl = 'https://changenow.io/terms-of-use';
static const morphUrl = 'http://morphtoken.com/terms';
@@ -155,27 +154,6 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
SizedBox(
height: 16.0,
),
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Expanded(
child: GestureDetector(
onTap: () => launchUrl(xmrtoUrl),
child: Text(
xmrtoUrl,
textAlign: TextAlign.left,
style: TextStyle(
color: Palette.blueCraiola,
fontSize: 14.0,
fontWeight: FontWeight.normal,
decoration: TextDecoration.underline),
),
))
],
),
SizedBox(
height: 16.0,
),
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
+4 -2
View File
@@ -2,10 +2,11 @@ import 'package:flutter/material.dart';
import 'package:cake_wallet/palette.dart';
class TrailButton extends StatelessWidget {
TrailButton({@required this.caption, @required this.onPressed});
TrailButton({@required this.caption, this.textColor, @required this.onPressed});
final String caption;
final VoidCallback onPressed;
final Color textColor;
@override
Widget build(BuildContext context) {
@@ -18,7 +19,8 @@ class TrailButton extends StatelessWidget {
child: Text(
caption,
style: TextStyle(
color: Palette.blueCraiola,
color: textColor ??
Theme.of(context).textTheme.subhead.decorationColor,
fontWeight: FontWeight.w600,
fontSize: 14),
),