mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-24 19:46:16 +00:00
Fix support links/emails not opening
This commit is contained in:
parent
4f1235d766
commit
f49695f417
2 changed files with 3 additions and 4 deletions
|
@ -30,6 +30,6 @@ class SettingsLinkProviderCell extends StandardListRow {
|
||||||
color: Palette.blueCraiola));
|
color: Palette.blueCraiola));
|
||||||
|
|
||||||
static void _launchUrl(String url) async {
|
static void _launchUrl(String url) async {
|
||||||
if (await canLaunch(url)) await launch(url, forceSafariVC: false);
|
await launch(url, forceSafariVC: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,7 +7,6 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:mobx/mobx.dart';
|
import 'package:mobx/mobx.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
|
||||||
|
|
||||||
part 'support_view_model.g.dart';
|
part 'support_view_model.g.dart';
|
||||||
|
|
||||||
|
@ -19,7 +18,7 @@ abstract class SupportViewModelBase with Store {
|
||||||
RegularListItem(
|
RegularListItem(
|
||||||
title: S.current.faq,
|
title: S.current.faq,
|
||||||
handler: (BuildContext context) async {
|
handler: (BuildContext context) async {
|
||||||
if (await canLaunch(url)) await launch(url);
|
await launch(url);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
LinkListItem(
|
LinkListItem(
|
||||||
|
|
Loading…
Reference in a new issue