Fix support links/emails not opening

This commit is contained in:
OmarHatem 2023-02-13 20:44:23 +02:00
parent 4f1235d766
commit f49695f417
2 changed files with 3 additions and 4 deletions

View file

@ -30,6 +30,6 @@ class SettingsLinkProviderCell extends StandardListRow {
color: Palette.blueCraiola));
static void _launchUrl(String url) async {
if (await canLaunch(url)) await launch(url, forceSafariVC: false);
await launch(url, forceSafariVC: false);
}
}
}

View file

@ -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,7 @@ abstract class SupportViewModelBase with Store {
RegularListItem(
title: S.current.faq,
handler: (BuildContext context) async {
if (await canLaunch(url)) await launch(url);
await launch(url);
},
),
LinkListItem(