Add settings version in a const

I'd planned to use it in another part of GitJournal
This commit is contained in:
Vishesh Handa
2021-03-02 10:33:03 +01:00
parent ae70ab8b8f
commit 113a811de5

View File

@ -31,6 +31,7 @@ import 'package:gitjournal/screens/note_editor.dart';
const DEFAULT_ID = "0";
const FOLDER_NAME_KEY = "remoteGitRepoPath";
const SETTINGS_VERSION = 3;
class Settings extends ChangeNotifier {
Settings(this.id);
@ -63,7 +64,7 @@ class Settings extends ChangeNotifier {
SettingsFolderViewType defaultView = SettingsFolderViewType.Default;
bool showNoteSummary = true;
String folderViewHeaderType = "TitleGenerated";
int version = 3;
int version = SETTINGS_VERSION;
SettingsHomeScreen homeScreen = SettingsHomeScreen.Default;
SettingsTheme theme = SettingsTheme.Default;