mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 09:06:43 +08:00
RawEditor: Add a FAB
This commit is contained in:
@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user