mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Merge pull request #85 from cake-tech/CAKE-283-change-FAQ-on-the-app
CAKE-283 | changed FAQ on the app (now it shown in browser)
This commit is contained in:
commit
0e3b4d6719
1 changed files with 6 additions and 2 deletions
|
@ -26,6 +26,7 @@ import 'package:cake_wallet/view_model/settings/regular_list_item.dart';
|
|||
import 'package:cake_wallet/view_model/settings/settings_list_item.dart';
|
||||
import 'package:cake_wallet/view_model/settings/switcher_list_item.dart';
|
||||
import 'package:cake_wallet/src/screens/auth/auth_page.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
part 'settings_view_model.g.dart';
|
||||
|
||||
|
@ -173,14 +174,17 @@ abstract class SettingsViewModelBase with Store {
|
|||
),
|
||||
RegularListItem(
|
||||
title: S.current.faq,
|
||||
handler: (BuildContext context) =>
|
||||
Navigator.pushNamed(context, Routes.faq),
|
||||
handler: (BuildContext context) async {
|
||||
if (await canLaunch(url)) await launch(url);
|
||||
},
|
||||
)
|
||||
],
|
||||
[VersionListItem(title: currentVersion)]
|
||||
];
|
||||
}
|
||||
|
||||
static const url = 'https://cakewallet.com/guide/';
|
||||
|
||||
@observable
|
||||
String currentVersion;
|
||||
|
||||
|
|
Loading…
Reference in a new issue