diff --git a/lib/editors/markdown_editor.dart b/lib/editors/markdown_editor.dart index 2e1092d8..88889edb 100644 --- a/lib/editors/markdown_editor.dart +++ b/lib/editors/markdown_editor.dart @@ -71,10 +71,11 @@ class MarkdownEditorState extends State { Widget body = editingMode ? editor : NoteViewer(note: note); var fab = FloatingActionButton( - child: editingMode - ? const Icon(Icons.remove_red_eye) - : const Icon(Icons.edit), - onPressed: _switchMode, + child: const Icon(Icons.check), + onPressed: () { + _updateNote(); + widget.exitEditorSelected(note); + }, ); return Scaffold(