mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
format code
This commit is contained in:
@@ -145,20 +145,20 @@ 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;
|
||||||
});
|
});
|
||||||
} else if ((current < location-50 || current == 0) &&
|
} else if ((current < location - 50 || current == 0) &&
|
||||||
!showFB) {
|
!showFB) {
|
||||||
setState(() {
|
setState(() {
|
||||||
showFB = true;
|
showFB = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if((current>location||current<location-50)&&!overflow){
|
if ((current > location || current < location - 50) &&
|
||||||
location=current;
|
!overflow) {
|
||||||
|
location = current;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user