mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +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(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
@ -94,6 +102,7 @@ class RawEditorState extends State<RawEditor> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: editor,
|
body: editor,
|
||||||
|
floatingActionButton: fab,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user