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,6 +53,7 @@ class ChecklistEditor extends StatefulWidget implements Editor {
}
class ChecklistEditorState extends State<ChecklistEditor>
with ChangeNotifier
implements EditorState {
Checklist checklist;
var focusNodes = <UniqueKey, FocusScopeNode>{};
@ -199,6 +200,8 @@ class ChecklistEditorState extends State<ChecklistEditor>
}
void _noteTextChanged() {
notifyListeners();
if (_noteModified) return;
setState(() {
_noteModified = true;