rafalbednarczuk / curved_navigation_bar

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

Tap on the same item in CurvedNavigationBar build related page again #62

Closed NickanBagherpour closed 3 years ago

NickanBagherpour commented 4 years ago

Hi As I mentioned in title , when I tap on the same item in CurvedNavigationBar , the whole page build triggers again and that's not good , especially when that page does some heavy networking or etc. It is not possible to prevent page changing in onTap function ... I hope you can understand my purpose Thank you

rafalbednarczuk commented 3 years ago

You should specify rebuild behavior inside onTap(index) method of CurvedNavigationBar. If the index is the same as before then don't rebuild the page.