mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
Remove the FAB
Fixes #58 I've tried adding a black space under the FAB, but that just reduces the available vertical space while typing. This does reduce the usability for small notes, as clicking on the FAB is much easier than clicking on top-right back button or clicking the back button twice on Android.
This commit is contained in:
@ -121,7 +121,6 @@ class ChecklistEditorState extends State<ChecklistEditor>
|
||||
|
||||
return Scaffold(
|
||||
appBar: buildEditorAppBar(widget, this),
|
||||
floatingActionButton: buildFAB(widget, this),
|
||||
body: Column(
|
||||
children: <Widget>[
|
||||
if (widget.note.canHaveMetadata) titleEditor,
|
||||
|
@ -85,12 +85,3 @@ AppBar buildEditorAppBar(
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
FloatingActionButton buildFAB(Editor editor, EditorState editorState) {
|
||||
return FloatingActionButton(
|
||||
child: const Icon(Icons.check),
|
||||
onPressed: () {
|
||||
editor.exitEditorSelected(editorState.getNote());
|
||||
},
|
||||
);
|
||||
}
|
||||
|
@ -87,7 +87,6 @@ class MarkdownEditorState extends State<MarkdownEditor> implements EditorState {
|
||||
|
||||
return Scaffold(
|
||||
appBar: buildEditorAppBar(widget, this, extraButtons: [extraButton]),
|
||||
floatingActionButton: buildFAB(widget, this),
|
||||
body: body,
|
||||
);
|
||||
}
|
||||
|
@ -70,7 +70,6 @@ class RawEditorState extends State<RawEditor> implements EditorState {
|
||||
|
||||
return Scaffold(
|
||||
appBar: buildEditorAppBar(widget, this),
|
||||
floatingActionButton: buildFAB(widget, this),
|
||||
body: editor,
|
||||
);
|
||||
}
|
||||
|
@ -60,7 +60,6 @@ class NoteViewer extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 64.0),
|
||||
// _buildFooter(context),
|
||||
],
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
Reference in New Issue
Block a user