fancy_bottom_navigation icon indicating copy to clipboard operation
fancy_bottom_navigation copied to clipboard

Integrate with TabView

Open ikurek opened this issue 7 years ago • 2 comments

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?

ikurek avatar Mar 16 '19 01:03 ikurek

Same problem here!

pitazzo avatar Mar 25 '19 23:03 pitazzo

#37 PR is out!

spoeck avatar Jul 05 '19 17:07 spoeck