fix: 首页tarbar指示器跳动

This commit is contained in:
guozhigq
2024-03-04 08:29:01 +08:00
committed by orz12
parent 736f99b1d9
commit e9dcd190e5

View File

@@ -91,6 +91,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
vsync: this,
);
// 监听 tabController 切换
if (enableGradientBg) {
tabController.animation!.addListener(() {
if (tabController.indexIsChanging) {
if (initialIndex.value != tabController.index) {
@@ -105,6 +106,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
}
});
}
}
void searchDefault() async {
var res = await Request().get(Api.searchDefault);