Fix support links/emails not opening
OmarHatem committed
Feb 13, 2023 at 20:44 UTC
f49695f4179948df945ec4a87172982b696ef181
2 files changed
+3
-4
lib/src/screens/settings/widgets/settings_link_provider_cell.dart
+2
-2
@@ -30,6 +30,6 @@ class SettingsLinkProviderCell extends StandardListRow {
30
color: Palette.blueCraiola));
31
32
static void _launchUrl(String url) async {
33
- if (await canLaunch(url)) await launch(url, forceSafariVC: false);
33
+ await launch(url, forceSafariVC: false);
34
}
35
-}
\ No newline at end of file
35
+}
lib/view_model/support_view_model.dart
+1
-2
@@ -7,7 +7,6 @@ import 'package:flutter/material.dart';
7
import 'package:mobx/mobx.dart';
8
import 'package:url_launcher/url_launcher.dart';
9
import 'package:cake_wallet/wallet_type_utils.dart';
10
-import 'package:cake_wallet/wallet_type_utils.dart';
10
11
part 'support_view_model.g.dart';
12
@@ -19,7 +18,7 @@ abstract class SupportViewModelBase with Store {
18
RegularListItem(
19
title: S.current.faq,
20
handler: (BuildContext context) async {
22
- if (await canLaunch(url)) await launch(url);
21
+ await launch(url);
22
},
23
),
24
LinkListItem(