fix animation

This commit is contained in:
NBA2K1 2025-07-16 14:02:59 +02:00
parent d221e5fab0
commit 5ee88b80ca

View file

@ -60,9 +60,12 @@ Future<void> customDraggableTabBar({
);
}
tabBarController.addListener(() {
if (tabBarController.indexIsChanging) return;
tabBarController.animation!.addListener(() {
final currentIndex = tabBarController.animation!.value.round();
index = tabBarController.index;
if (index != currentIndex) {
index = currentIndex;
}
refresh();
});