From 17a5135196e4d989b2a498ea0e85ce33ae39f664 Mon Sep 17 00:00:00 2001 From: Jimmy Misaka Date: Tue, 24 Jan 2023 21:19:28 +0800 Subject: [PATCH] DEV UPDATE:Fix video list scroll bug --- lib/routes/video/videoList.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/routes/video/videoList.dart b/lib/routes/video/videoList.dart index 0b1d143..65b447f 100644 --- a/lib/routes/video/videoList.dart +++ b/lib/routes/video/videoList.dart @@ -192,7 +192,11 @@ class _VideoListState extends State { if (notification.metrics.maxScrollExtent - notification.metrics.pixels < 1200 && + notification.metrics.maxScrollExtent - + notification.metrics.pixels > + 0 && !_loading) { + print(notification.metrics.maxScrollExtent - notification.metrics.pixels); _getVideos(); } });