mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 01:02:14 +08:00
MarkdownEditor: Show a FAB with a checkmark
Instead of a FAB to switch modes.
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user