mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -188,21 +188,6 @@ class DynamicsController extends GetxController
|
||||
scrollController.animToTop();
|
||||
}
|
||||
|
||||
@override
|
||||
FutureOr<void> toTopOrRefresh() {
|
||||
final ctr = controller;
|
||||
if (scrollController.hasClients && ctr.scrollController.hasClients) {
|
||||
if (scrollController.position.pixels == 0 &&
|
||||
ctr.scrollController.position.pixels == 0) {
|
||||
return onRefresh();
|
||||
} else {
|
||||
animateToTop();
|
||||
}
|
||||
} else {
|
||||
super.toTopOrRefresh();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void onClose() {
|
||||
tabController.dispose();
|
||||
|
||||
Reference in New Issue
Block a user