mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 09:29:48 +00:00
CWA-169 | added morph images to assets, added morph contact to settings page and morph link to disclaimer page
This commit is contained in:
parent
13618c6939
commit
612b5647fc
5 changed files with 30 additions and 0 deletions
BIN
assets/images/2.0x/morph_icon.png
Normal file
BIN
assets/images/2.0x/morph_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/images/3.0x/morph_icon.png
Normal file
BIN
assets/images/3.0x/morph_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
BIN
assets/images/morph_icon.png
Normal file
BIN
assets/images/morph_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 895 B |
|
@ -36,6 +36,7 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
|
|||
|
||||
static const xmrtoUrl = 'https://xmr.to/app_static/html/tos.html';
|
||||
static const changenowUrl = 'https://changenow.io/terms-of-use';
|
||||
static const morphUrl = 'http://morphtoken.com/terms';
|
||||
|
||||
final bool _isAccepted;
|
||||
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(
|
||||
height: 16.0,
|
||||
)
|
||||
|
|
|
@ -51,12 +51,14 @@ class SettingsFormState extends State<SettingsForm> {
|
|||
final _twitterImage = Image.asset('assets/images/Twitter.png');
|
||||
final _changeNowImage = Image.asset('assets/images/change_now.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 _telegramUrl = 'https:t.me/cakewallet_bot';
|
||||
final _twitterUrl = 'https:twitter.com/CakewalletXMR';
|
||||
final _changeNowUrl = 'mailto:support@changenow.io';
|
||||
final _xmrToUrl = 'mailto:support@xmr.to';
|
||||
final _morphUrl = 'mailto:support@morphtoken.com';
|
||||
|
||||
final _items = List<SettingsItem>();
|
||||
|
||||
|
@ -267,6 +269,12 @@ class SettingsFormState extends State<SettingsForm> {
|
|||
link: 'support@xmr.to',
|
||||
image: _xmrBtcImage,
|
||||
attribute: Attributes.link),
|
||||
SettingsItem(
|
||||
onTaped: () => _launchUrl(_morphUrl),
|
||||
title: 'MorphToken',
|
||||
link: 'support@morphtoken.com',
|
||||
image: _morphImage,
|
||||
attribute: Attributes.link),
|
||||
SettingsItem(
|
||||
onTaped: () {
|
||||
Navigator.push(
|
||||
|
|
Loading…
Reference in a new issue