rafalbednarczuk / curved_navigation_bar

Animated Curved Navigation Bar in Flutter
BSD 2-Clause "Simplified" License
694 stars 242 forks source link

how can I make set a function on ontab? #33

Closed abdelrahmanelmarakby closed 5 years ago

prafgup commented 5 years ago

https://github.com/rafalbednarczuk/curved_navigation_bar/pull/34

Check This with the latest Update

rafalbednarczuk commented 5 years ago

I think you should use onTap attribute of CurvedNavigationBar

    onTap: (index) {
            setState(() {
              _page = index;
            });
          },