CWA-169 | added morph images to assets, added morph contact to settings page and morph link to disclaimer page

This commit is contained in:
Oleksandr Sobol 2020-01-29 20:36:54 +02:00
parent 13618c6939
commit 612b5647fc
5 changed files with 30 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 895 B

View file

@ -36,6 +36,7 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
static const xmrtoUrl = 'https://xmr.to/app_static/html/tos.html'; static const xmrtoUrl = 'https://xmr.to/app_static/html/tos.html';
static const changenowUrl = 'https://changenow.io/terms-of-use'; static const changenowUrl = 'https://changenow.io/terms-of-use';
static const morphUrl = 'http://morphtoken.com/terms';
final bool _isAccepted; final bool _isAccepted;
bool _checked = false; bool _checked = false;
@ -197,6 +198,27 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
)) ))
], ],
), ),
SizedBox(
height: 16.0,
),
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Expanded(
child: GestureDetector(
onTap: () => launchUrl(morphUrl),
child: Text(
morphUrl,
textAlign: TextAlign.left,
style: TextStyle(
color: Colors.blue,
fontSize: 14.0,
fontWeight: FontWeight.normal,
decoration: TextDecoration.underline),
),
))
],
),
SizedBox( SizedBox(
height: 16.0, height: 16.0,
) )

View file

@ -51,12 +51,14 @@ class SettingsFormState extends State<SettingsForm> {
final _twitterImage = Image.asset('assets/images/Twitter.png'); final _twitterImage = Image.asset('assets/images/Twitter.png');
final _changeNowImage = Image.asset('assets/images/change_now.png'); final _changeNowImage = Image.asset('assets/images/change_now.png');
final _xmrBtcImage = Image.asset('assets/images/xmr_btc.png'); final _xmrBtcImage = Image.asset('assets/images/xmr_btc.png');
final _morphImage = Image.asset('assets/images/morph_icon.png');
final _emailUrl = 'mailto:support@cakewallet.io'; final _emailUrl = 'mailto:support@cakewallet.io';
final _telegramUrl = 'https:t.me/cakewallet_bot'; final _telegramUrl = 'https:t.me/cakewallet_bot';
final _twitterUrl = 'https:twitter.com/CakewalletXMR'; final _twitterUrl = 'https:twitter.com/CakewalletXMR';
final _changeNowUrl = 'mailto:support@changenow.io'; final _changeNowUrl = 'mailto:support@changenow.io';
final _xmrToUrl = 'mailto:support@xmr.to'; final _xmrToUrl = 'mailto:support@xmr.to';
final _morphUrl = 'mailto:support@morphtoken.com';
final _items = List<SettingsItem>(); final _items = List<SettingsItem>();
@ -267,6 +269,12 @@ class SettingsFormState extends State<SettingsForm> {
link: 'support@xmr.to', link: 'support@xmr.to',
image: _xmrBtcImage, image: _xmrBtcImage,
attribute: Attributes.link), attribute: Attributes.link),
SettingsItem(
onTaped: () => _launchUrl(_morphUrl),
title: 'MorphToken',
link: 'support@morphtoken.com',
image: _morphImage,
attribute: Attributes.link),
SettingsItem( SettingsItem(
onTaped: () { onTaped: () {
Navigator.push( Navigator.push(