fix refresh button overlap with next page button

This commit is contained in:
deltamaya
2024-11-03 11:13:27 +08:00
parent 679462f272
commit 8fb39b1ec8

View File

@@ -145,19 +145,21 @@ class _ExplorePageState extends State<ExplorePage>
} }
var current = notifications.metrics.pixels; var current = notifications.metrics.pixels;
var overflow=notifications.metrics.outOfRange;
if ((current > location && current != 0) && showFB) { // print("current: $current, prev: $location");
if (current > location && current != 0 && showFB) {
setState(() { setState(() {
showFB = false; showFB = false;
}); });
} else if ((current < location || current == 0) && } else if ((current < location-50 || current == 0) &&
!showFB) { !showFB) {
setState(() { setState(() {
showFB = true; showFB = true;
}); });
} }
if((current>location||current<location-50)&&!overflow){
location=current; location=current;
}
return false; return false;
}, },
child: MediaQuery.removePadding( child: MediaQuery.removePadding(