You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using AutoTabsRouter.pageView, with a BottomNavigationBar.
I am listening to the route change to rebuild my BottomNavigationBar, such that it correctly styles tabs to show selection.
One can change pages by either, tapping a tab button, or swiping the pageview left/right.
If using the swipe gesture to change the page, AND changing from a higher page index to a lower one, the AutoTabsRouter does not fire the didChangeTabRoute observers - hence my application is not aware that the app navigation has changed, and I cannot paint the UI to reflect this state.
I guess it doesn't really matter what I'm doing with the observer event, the key is that AutoTabsRouter.pageView doesnt notify observers consistently.
When "decrementing" the activeIndex, the toInt() on line 520 causes the controllerPage variable to equal the new page index, rather than the intended previous one - hence line 524 evaluates to false, and _didChangeTabRoute() is not called.
I'll have a crack at it - looks like a simple fix, but I may very well be misunderstanding why you truncated the page index variable...
The text was updated successfully, but these errors were encountered:
I'm using AutoTabsRouter.pageView, with a BottomNavigationBar.
I am listening to the route change to rebuild my BottomNavigationBar, such that it correctly styles tabs to show selection.
One can change pages by either, tapping a tab button, or swiping the pageview left/right.
If using the swipe gesture to change the page, AND changing from a higher page index to a lower one, the AutoTabsRouter does not fire the
didChangeTabRoute
observers - hence my application is not aware that the app navigation has changed, and I cannot paint the UI to reflect this state.I guess it doesn't really matter what I'm doing with the observer event, the key is that AutoTabsRouter.pageView doesnt notify observers consistently.
I've tracked this down to auto_tabs_router.dart:524
When "decrementing" the activeIndex, the
toInt()
on line 520 causes thecontrollerPage
variable to equal the new page index, rather than the intended previous one - hence line 524 evaluates to false, and_didChangeTabRoute()
is not called.I'll have a crack at it - looks like a simple fix, but I may very well be misunderstanding why you truncated the page index variable...
The text was updated successfully, but these errors were encountered: