mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-24 19:24:45 +08:00
Implement a basic Zen Mode
This can be enabled in all the editors.
This commit is contained in:
@ -53,7 +53,9 @@ class MarkdownEditor extends StatefulWidget implements Editor {
|
||||
}
|
||||
}
|
||||
|
||||
class MarkdownEditorState extends State<MarkdownEditor> implements EditorState {
|
||||
class MarkdownEditorState extends State<MarkdownEditor>
|
||||
with ChangeNotifier
|
||||
implements EditorState {
|
||||
Note note;
|
||||
TextEditingController _textController = TextEditingController();
|
||||
TextEditingController _titleTextController = TextEditingController();
|
||||
@ -187,6 +189,8 @@ class MarkdownEditorState extends State<MarkdownEditor> implements EditorState {
|
||||
_noteModified = newState;
|
||||
});
|
||||
}
|
||||
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void _applyHeuristics() {
|
||||
|
Reference in New Issue
Block a user