From 587163eb7ee9d71719ef44cee49f9c390b9a0ff4 Mon Sep 17 00:00:00 2001 From: KoolShow <51787949+KoolShow@users.noreply.github.com> Date: Sun, 28 Apr 2024 20:22:03 +0800 Subject: [PATCH] Update view.dart --- lib/pages/main/view.dart | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/pages/main/view.dart b/lib/pages/main/view.dart index c551e6905..04e0f087f 100644 --- a/lib/pages/main/view.dart +++ b/lib/pages/main/view.dart @@ -7,7 +7,6 @@ import 'package:pilipala/models/common/dynamic_badge_mode.dart'; import 'package:pilipala/pages/dynamics/index.dart'; import 'package:pilipala/pages/home/index.dart'; import 'package:pilipala/pages/media/index.dart'; -import 'package:pilipala/pages/rank/index.dart'; import 'package:pilipala/utils/event_bus.dart'; import 'package:pilipala/utils/feed_back.dart'; import 'package:pilipala/utils/storage.dart'; @@ -23,7 +22,6 @@ class MainApp extends StatefulWidget { class _MainAppState extends State with SingleTickerProviderStateMixin { final MainController _mainController = Get.put(MainController()); final HomeController _homeController = Get.put(HomeController()); - final RankController _rankController = Get.put(RankController()); final DynamicsController _dynamicController = Get.put(DynamicsController()); final MediaController _mediaController = Get.put(MediaController()); @@ -59,21 +57,6 @@ class _MainAppState extends State with SingleTickerProviderStateMixin { _homeController.flag = false; } - if (currentPage is RankPage) { - if (_rankController.flag) { - // 单击返回顶部 双击并刷新 - if (DateTime.now().millisecondsSinceEpoch - _lastSelectTime! < 500) { - _rankController.onRefresh(); - } else { - _rankController.animateToTop(); - } - _lastSelectTime = DateTime.now().millisecondsSinceEpoch; - } - _rankController.flag = true; - } else { - _rankController.flag = false; - } - if (currentPage is DynamicsPage) { if (_dynamicController.flag) { // 单击返回顶部 双击并刷新