mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: anim to top
This commit is contained in:
@@ -10,7 +10,7 @@ import '../../utils/feed_back.dart';
|
||||
import '../mine/view.dart';
|
||||
|
||||
class HomeController extends GetxController with GetTickerProviderStateMixin {
|
||||
bool flag = false;
|
||||
bool flag = true;
|
||||
late RxList tabs = [].obs;
|
||||
RxInt initialIndex = 1.obs;
|
||||
late TabController tabController;
|
||||
|
||||
@@ -89,10 +89,6 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
|
||||
} else {
|
||||
_dynamicController.flag = false;
|
||||
}
|
||||
|
||||
if (currentPage is MediaPage) {
|
||||
_mediaController.queryData();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -111,6 +107,9 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
|
||||
if (_dynamicController.flag) {
|
||||
_dynamicController.flag = false;
|
||||
}
|
||||
if (!_homeController.flag) {
|
||||
_homeController.flag = true;
|
||||
}
|
||||
},
|
||||
child: Scaffold(
|
||||
extendBody: true,
|
||||
|
||||
Reference in New Issue
Block a user