mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Merge pull request #784 from cake-tech/fix-support-page-links
Fix Support links
This commit is contained in:
commit
9fcb379d19
2 changed files with 7 additions and 4 deletions
|
@ -30,6 +30,8 @@ class SettingsLinkProviderCell extends StandardListRow {
|
|||
color: Palette.blueCraiola));
|
||||
|
||||
static void _launchUrl(String url) async {
|
||||
if (await canLaunch(url)) await launch(url, forceSafariVC: false);
|
||||
try {
|
||||
await launch(url, forceSafariVC: false);
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
|
@ -7,7 +7,6 @@ import 'package:flutter/material.dart';
|
|||
import 'package:mobx/mobx.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||
|
||||
part 'support_view_model.g.dart';
|
||||
|
||||
|
@ -19,7 +18,9 @@ abstract class SupportViewModelBase with Store {
|
|||
RegularListItem(
|
||||
title: S.current.faq,
|
||||
handler: (BuildContext context) async {
|
||||
if (await canLaunch(url)) await launch(url);
|
||||
try {
|
||||
await launch(url);
|
||||
} catch (e) {}
|
||||
},
|
||||
),
|
||||
LinkListItem(
|
||||
|
|
Loading…
Reference in a new issue