From e5e27e9a1d89c295c7b5fd1866cbef200577b16e Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 14 Apr 2020 08:29:17 +0200 Subject: [PATCH] Add a bottom padding in the folderView This way the FAB bar doesn't cover the last element. --- lib/screens/folder_view.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/screens/folder_view.dart b/lib/screens/folder_view.dart index 85543f3d..9c3fe3d8 100644 --- a/lib/screens/folder_view.dart +++ b/lib/screens/folder_view.dart @@ -77,7 +77,7 @@ class _FolderViewState extends State { : 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 { }, ); + // 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( onSelected: (DropDownChoices choice) { switch (choice) {