mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 17:25:32 +00:00
fix animation
This commit is contained in:
parent
d221e5fab0
commit
5ee88b80ca
1 changed files with 5 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue