From 574fdfa874c775ad030cc0d84590499a6639777d Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Wed, 24 Feb 2021 10:26:02 +0200 Subject: [PATCH] CAKE-283 | moved url to static const --- lib/view_model/settings/settings_view_model.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/view_model/settings/settings_view_model.dart b/lib/view_model/settings/settings_view_model.dart index e1938b005..2a5e9c174 100644 --- a/lib/view_model/settings/settings_view_model.dart +++ b/lib/view_model/settings/settings_view_model.dart @@ -175,7 +175,6 @@ abstract class SettingsViewModelBase with Store { RegularListItem( title: S.current.faq, handler: (BuildContext context) async { - final url = 'https://cakewallet.com/guide/'; if (await canLaunch(url)) await launch(url); }, ) @@ -184,6 +183,8 @@ abstract class SettingsViewModelBase with Store { ]; } + static const url = 'https://cakewallet.com/guide/'; + @observable String currentVersion;