Add a bottom padding in the folderView

This way the FAB bar doesn't cover the last element.
This commit is contained in:
Vishesh Handa
2020-04-14 08:29:17 +02:00
parent e0e0d6d42f
commit e5e27e9a1d

View File

@ -77,7 +77,7 @@ class _FolderViewState extends State<FolderView> {
: widget.notesFolder.pathSpec();
}
var folderView = Builder(
Widget folderView = Builder(
builder: (BuildContext context) {
const emptyText = "Let's add some notes?";
return buildFolderView(
@ -91,6 +91,12 @@ class _FolderViewState extends State<FolderView> {
},
);
// So the FAB doesn't hide parts of the last entry
folderView = Padding(
child: folderView,
padding: const EdgeInsets.fromLTRB(0.0, 0.0, 0.0, 48.0),
);
var extraAction = PopupMenuButton<DropDownChoices>(
onSelected: (DropDownChoices choice) {
switch (choice) {