RawEditor: Add a FAB

This commit is contained in:
Vishesh Handa
2020-01-29 00:00:47 +01:00
parent 047aac3553
commit db5d2c51e7

View File

@ -53,6 +53,14 @@ class RawEditorState extends State<RawEditor> {
),
);
var fab = FloatingActionButton(
child: const Icon(Icons.check),
onPressed: () {
_updateNote();
widget.exitEditorSelected(note);
},
);
return Scaffold(
appBar: AppBar(
leading: IconButton(
@ -94,6 +102,7 @@ class RawEditorState extends State<RawEditor> {
],
),
body: editor,
floatingActionButton: fab,
);
}