diff --git a/lib/widget/home_photos.dart b/lib/widget/home_photos.dart index 211b833d..57a48e2a 100644 --- a/lib/widget/home_photos.dart +++ b/lib/widget/home_photos.dart @@ -551,11 +551,11 @@ class _HomePhotosState extends State if (_itemListMaxExtent != null && constraints.hasBoundedHeight && _appBarExtent != null) { - // scroll extent = list height - widget viewport height + sliver app bar height + // scroll extent = list height - widget viewport height + sliver app bar height + list padding final scrollExtent = - _itemListMaxExtent - constraints.maxHeight + _appBarExtent; + _itemListMaxExtent - constraints.maxHeight + _appBarExtent + 16; _log.info( - "[_getScrollViewExtent] $_itemListMaxExtent - ${constraints.maxHeight} + $_appBarExtent = $scrollExtent"); + "[_getScrollViewExtent] $_itemListMaxExtent - ${constraints.maxHeight} + $_appBarExtent + 16 = $scrollExtent"); return scrollExtent; } else { return null;