fancy_bottom_navigation
fancy_bottom_navigation copied to clipboard
Integrate with TabView
Since this project derieves from BottomNavigationBar, and not TabBar, creating TabController and it's listeners is not possible. Due to that, there is no way to integrate with TabView, and also, no good way to use this library with swipable views. I've tried the following:
void _onTabSwiped() {
_currentTabSelected = _tabController.index;
_bottomNavigationKey.currentState.setPage(_currentTabSelected);
}
void _onTabSelected(int currentTab) {
_tabController.animateTo(currentTab);
}
where 1st method is attached to TabController view change, and second one to FancyBottomNavigation. This solution barely works, with large animation delays an issues with correct tab enumerations. Is there any way to integrate this library with TabView, allowing user to swipe content screens?
Same problem here!
#37 PR is out!