fix: anim to top

This commit is contained in:
bggRGjQaUbCoE
2024-09-16 14:38:50 +08:00
parent 31000389ea
commit 5837bf923e
2 changed files with 4 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ import '../../utils/feed_back.dart';
import '../mine/view.dart'; import '../mine/view.dart';
class HomeController extends GetxController with GetTickerProviderStateMixin { class HomeController extends GetxController with GetTickerProviderStateMixin {
bool flag = false; bool flag = true;
late RxList tabs = [].obs; late RxList tabs = [].obs;
RxInt initialIndex = 1.obs; RxInt initialIndex = 1.obs;
late TabController tabController; late TabController tabController;

View File

@@ -89,10 +89,6 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
} else { } else {
_dynamicController.flag = false; _dynamicController.flag = false;
} }
if (currentPage is MediaPage) {
_mediaController.queryData();
}
} }
@override @override
@@ -111,6 +107,9 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
if (_dynamicController.flag) { if (_dynamicController.flag) {
_dynamicController.flag = false; _dynamicController.flag = false;
} }
if (!_homeController.flag) {
_homeController.flag = true;
}
}, },
child: Scaffold( child: Scaffold(
extendBody: true, extendBody: true,