mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-16 10:50:49 +08:00
Implement a basic Zen Mode
This can be enabled in all the editors.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user