mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Fix incorrect scroll extent in photos page
This commit is contained in:
parent
5d9c666349
commit
65b4977e92
1 changed files with 3 additions and 3 deletions
|
@ -551,11 +551,11 @@ class _HomePhotosState extends State<HomePhotos>
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue