fix: 首页tarbar指示器跳动

This commit is contained in:
guozhigq
2024-03-04 08:29:01 +08:00
parent b248158e62
commit f1b829cec1

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);