MarkdownEditor: Show a FAB with a checkmark

Instead of a FAB to switch modes.
This commit is contained in:
Vishesh Handa
2020-01-28 23:57:47 +01:00
parent 3f40a2992a
commit 047aac3553

View File

@ -71,10 +71,11 @@ class MarkdownEditorState extends State<MarkdownEditor> {
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(