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:
Vishesh Handa
2020-02-28 12:34:56 +01:00
parent a49876e3ee
commit dae3d1aec9
5 changed files with 0 additions and 13 deletions

View File

@ -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,

View File

@ -85,12 +85,3 @@ AppBar buildEditorAppBar(
],
);
}
FloatingActionButton buildFAB(Editor editor, EditorState editorState) {
return FloatingActionButton(
child: const Icon(Icons.check),
onPressed: () {
editor.exitEditorSelected(editorState.getNote());
},
);
}

View File

@ -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,
);
}

View File

@ -70,7 +70,6 @@ class RawEditorState extends State<RawEditor> implements EditorState {
return Scaffold(
appBar: buildEditorAppBar(widget, this),
floatingActionButton: buildFAB(widget, this),
body: editor,
);
}

View File

@ -60,7 +60,6 @@ class NoteViewer extends StatelessWidget {
},
),
),
const SizedBox(height: 64.0),
// _buildFooter(context),
],
crossAxisAlignment: CrossAxisAlignment.start,