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

Oleksandr Sobol committed Jan 29, 2020 at 20:36 UTC 612b5647fc5ccf78bfd29c492c86cf393dc11425
5 files changed +30
assets/images/2.0x/morph_icon.png
Binary files /dev/null and b/assets/images/2.0x/morph_icon.png differ
assets/images/3.0x/morph_icon.png
Binary files /dev/null and b/assets/images/3.0x/morph_icon.png differ
assets/images/morph_icon.png
Binary files /dev/null and b/assets/images/morph_icon.png differ
lib/src/screens/disclaimer/disclaimer_page.dart
+22
@@ -36,6 +36,7 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
36
37 static const xmrtoUrl = 'https://xmr.to/app_static/html/tos.html';
38 static const changenowUrl = 'https://changenow.io/terms-of-use';
39 + static const morphUrl = 'http://morphtoken.com/terms';
40
41 final bool _isAccepted;
42 bool _checked = false;
@@ -197,6 +198,27 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
198 ))
199 ],
200 ),
201 + SizedBox(
202 + height: 16.0,
203 + ),
204 + Row(
205 + mainAxisAlignment: MainAxisAlignment.start,
206 + children: <Widget>[
207 + Expanded(
208 + child: GestureDetector(
209 + onTap: () => launchUrl(morphUrl),
210 + child: Text(
211 + morphUrl,
212 + textAlign: TextAlign.left,
213 + style: TextStyle(
214 + color: Colors.blue,
215 + fontSize: 14.0,
216 + fontWeight: FontWeight.normal,
217 + decoration: TextDecoration.underline),
218 + ),
219 + ))
220 + ],
221 + ),
222 SizedBox(
223 height: 16.0,
224 )
lib/src/screens/settings/settings.dart
+8
@@ -51,12 +51,14 @@ class SettingsFormState extends State<SettingsForm> {
51 final _twitterImage = Image.asset('assets/images/Twitter.png');
52 final _changeNowImage = Image.asset('assets/images/change_now.png');
53 final _xmrBtcImage = Image.asset('assets/images/xmr_btc.png');
54 + final _morphImage = Image.asset('assets/images/morph_icon.png');
55
56 final _emailUrl = 'mailto:support@cakewallet.io';
57 final _telegramUrl = 'https:t.me/cakewallet_bot';
58 final _twitterUrl = 'https:twitter.com/CakewalletXMR';
59 final _changeNowUrl = 'mailto:support@changenow.io';
60 final _xmrToUrl = 'mailto:support@xmr.to';
61 + final _morphUrl = 'mailto:support@morphtoken.com';
62
63 final _items = List<SettingsItem>();
64
@@ -267,6 +269,12 @@ class SettingsFormState extends State<SettingsForm> {
269 link: 'support@xmr.to',
270 image: _xmrBtcImage,
271 attribute: Attributes.link),
272 + SettingsItem(
273 + onTaped: () => _launchUrl(_morphUrl),
274 + title: 'MorphToken',
275 + link: 'support@morphtoken.com',
276 + image: _morphImage,
277 + attribute: Attributes.link),
278 SettingsItem(
279 onTaped: () {
280 Navigator.push(