From 173689b57e313e605baa23eb49f50df8e30700a2 Mon Sep 17 00:00:00 2001 From: deltamaya Date: Sun, 3 Nov 2024 11:14:04 +0800 Subject: [PATCH] format code --- lib/pages/explore_page.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/pages/explore_page.dart b/lib/pages/explore_page.dart index 8425eea..d575b7f 100644 --- a/lib/pages/explore_page.dart +++ b/lib/pages/explore_page.dart @@ -145,20 +145,20 @@ class _ExplorePageState extends State } var current = notifications.metrics.pixels; - var overflow=notifications.metrics.outOfRange; - // print("current: $current, prev: $location"); + var overflow = notifications.metrics.outOfRange; if (current > location && current != 0 && showFB) { setState(() { showFB = false; }); - } else if ((current < location-50 || current == 0) && + } else if ((current < location - 50 || current == 0) && !showFB) { setState(() { showFB = true; }); } - if((current>location||current location || current < location - 50) && + !overflow) { + location = current; } return false; },