mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 16:46:51 +08:00
Add settings version in a const
I'd planned to use it in another part of GitJournal
This commit is contained in:
@ -31,6 +31,7 @@ import 'package:gitjournal/screens/note_editor.dart';
|
|||||||
|
|
||||||
const DEFAULT_ID = "0";
|
const DEFAULT_ID = "0";
|
||||||
const FOLDER_NAME_KEY = "remoteGitRepoPath";
|
const FOLDER_NAME_KEY = "remoteGitRepoPath";
|
||||||
|
const SETTINGS_VERSION = 3;
|
||||||
|
|
||||||
class Settings extends ChangeNotifier {
|
class Settings extends ChangeNotifier {
|
||||||
Settings(this.id);
|
Settings(this.id);
|
||||||
@ -63,7 +64,7 @@ class Settings extends ChangeNotifier {
|
|||||||
SettingsFolderViewType defaultView = SettingsFolderViewType.Default;
|
SettingsFolderViewType defaultView = SettingsFolderViewType.Default;
|
||||||
bool showNoteSummary = true;
|
bool showNoteSummary = true;
|
||||||
String folderViewHeaderType = "TitleGenerated";
|
String folderViewHeaderType = "TitleGenerated";
|
||||||
int version = 3;
|
int version = SETTINGS_VERSION;
|
||||||
|
|
||||||
SettingsHomeScreen homeScreen = SettingsHomeScreen.Default;
|
SettingsHomeScreen homeScreen = SettingsHomeScreen.Default;
|
||||||
SettingsTheme theme = SettingsTheme.Default;
|
SettingsTheme theme = SettingsTheme.Default;
|
||||||
|
Reference in New Issue
Block a user