From 047aac3553fa5b322434acf8a5e3ac0e742ac039 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 28 Jan 2020 23:57:47 +0100 Subject: [PATCH] MarkdownEditor: Show a FAB with a checkmark Instead of a FAB to switch modes. --- lib/editors/markdown_editor.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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(