Implement a basic Zen Mode

This can be enabled in all the editors.
This commit is contained in:
Vishesh Handa
2020-07-27 09:39:31 +02:00
parent 6d101ad5c4
commit e9cc050866
6 changed files with 111 additions and 19 deletions

View File

@ -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() {