fix: 首页tarbar指示器跳动
This commit is contained in:
@ -91,6 +91,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
|
|||||||
vsync: this,
|
vsync: this,
|
||||||
);
|
);
|
||||||
// 监听 tabController 切换
|
// 监听 tabController 切换
|
||||||
|
if (enableGradientBg) {
|
||||||
tabController.animation!.addListener(() {
|
tabController.animation!.addListener(() {
|
||||||
if (tabController.indexIsChanging) {
|
if (tabController.indexIsChanging) {
|
||||||
if (initialIndex.value != tabController.index) {
|
if (initialIndex.value != tabController.index) {
|
||||||
@ -105,6 +106,7 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void searchDefault() async {
|
void searchDefault() async {
|
||||||
var res = await Request().get(Api.searchDefault);
|
var res = await Request().get(Api.searchDefault);
|
||||||
|
|||||||
Reference in New Issue
Block a user