format code

This commit is contained in:
deltamaya
2024-11-03 11:14:04 +08:00
parent 8fb39b1ec8
commit 173689b57e

View File

@@ -146,7 +146,6 @@ class _ExplorePageState extends State<ExplorePage>
var current = notifications.metrics.pixels; var current = notifications.metrics.pixels;
var overflow = notifications.metrics.outOfRange; var overflow = notifications.metrics.outOfRange;
// print("current: $current, prev: $location");
if (current > location && current != 0 && showFB) { if (current > location && current != 0 && showFB) {
setState(() { setState(() {
showFB = false; showFB = false;
@@ -157,7 +156,8 @@ class _ExplorePageState extends State<ExplorePage>
showFB = true; showFB = true;
}); });
} }
if((current>location||current<location-50)&&!overflow){ if ((current > location || current < location - 50) &&
!overflow) {
location = current; location = current;
} }
return false; return false;