CAKE-283 | changed FAQ on the app (now it shown in browser)
OleksandrSobol committed
Feb 22, 2021 at 20:46 UTC
3135823afa1febc308898df06f30c15adc691d40
1 file changed
+5
-2
lib/view_model/settings/settings_view_model.dart
+5
-2
@@ -26,6 +26,7 @@ import 'package:cake_wallet/view_model/settings/regular_list_item.dart';
26
import 'package:cake_wallet/view_model/settings/settings_list_item.dart';
27
import 'package:cake_wallet/view_model/settings/switcher_list_item.dart';
28
import 'package:cake_wallet/src/screens/auth/auth_page.dart';
29
+import 'package:url_launcher/url_launcher.dart';
30
31
part 'settings_view_model.g.dart';
32
@@ -173,8 +174,10 @@ abstract class SettingsViewModelBase with Store {
174
),
175
RegularListItem(
176
title: S.current.faq,
176
- handler: (BuildContext context) =>
177
- Navigator.pushNamed(context, Routes.faq),
177
+ handler: (BuildContext context) async {
178
+ final url = 'https://cakewallet.com/guide/';
179
+ if (await canLaunch(url)) await launch(url);
180
+ },
181
)
182
],
183
[VersionListItem(title: currentVersion)]