mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +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);
|
Widget body = editingMode ? editor : NoteViewer(note: note);
|
||||||
var fab = FloatingActionButton(
|
var fab = FloatingActionButton(
|
||||||
child: editingMode
|
child: const Icon(Icons.check),
|
||||||
? const Icon(Icons.remove_red_eye)
|
onPressed: () {
|
||||||
: const Icon(Icons.edit),
|
_updateNote();
|
||||||
onPressed: _switchMode,
|
widget.exitEditorSelected(note);
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
Reference in New Issue
Block a user