mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: listener
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -44,22 +44,6 @@ class RankController extends GetxController with GetTickerProviderStateMixin {
|
||||
length: tabs.length,
|
||||
vsync: this,
|
||||
);
|
||||
// 监听 tabController 切换
|
||||
// if (enableGradientBg) {
|
||||
// tabController.animation!.addListener(() {
|
||||
// if (tabController.indexIsChanging) {
|
||||
// if (initialIndex.value != tabController.index) {
|
||||
// initialIndex.value = tabController.index;
|
||||
// }
|
||||
// } else {
|
||||
// final int temp = tabController.animation!.value.round();
|
||||
// if (initialIndex.value != temp) {
|
||||
// initialIndex.value = temp;
|
||||
// tabController.index = initialIndex.value;
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user