mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 23:19: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 &&
|
if (_itemListMaxExtent != null &&
|
||||||
constraints.hasBoundedHeight &&
|
constraints.hasBoundedHeight &&
|
||||||
_appBarExtent != null) {
|
_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 =
|
final scrollExtent =
|
||||||
_itemListMaxExtent - constraints.maxHeight + _appBarExtent;
|
_itemListMaxExtent - constraints.maxHeight + _appBarExtent + 16;
|
||||||
_log.info(
|
_log.info(
|
||||||
"[_getScrollViewExtent] $_itemListMaxExtent - ${constraints.maxHeight} + $_appBarExtent = $scrollExtent");
|
"[_getScrollViewExtent] $_itemListMaxExtent - ${constraints.maxHeight} + $_appBarExtent + 16 = $scrollExtent");
|
||||||
return scrollExtent;
|
return scrollExtent;
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue