From 8fb39b1ec8fbd13bad94f937f5c01e085d2ae948 Mon Sep 17 00:00:00 2001 From: deltamaya Date: Sun, 3 Nov 2024 11:13:27 +0800 Subject: [PATCH] fix refresh button overlap with next page button --- lib/pages/explore_page.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/pages/explore_page.dart b/lib/pages/explore_page.dart index ec41bda..8425eea 100644 --- a/lib/pages/explore_page.dart +++ b/lib/pages/explore_page.dart @@ -145,19 +145,21 @@ class _ExplorePageState extends State } var current = notifications.metrics.pixels; - - if ((current > location && current != 0) && showFB) { + var overflow=notifications.metrics.outOfRange; + // print("current: $current, prev: $location"); + if (current > location && current != 0 && showFB) { setState(() { showFB = false; }); - } else if ((current < location || current == 0) && + } else if ((current < location-50 || current == 0) && !showFB) { setState(() { showFB = true; }); } - - location = current; + if((current>location||current