Add the plugin (pub coming soon):
dependencies:
...
fancy_bottom_navigation: ^0.1.1
For now this is limited to more than 1 tab, and less than 5. So 2-4 tabs.
bottomNavigationBar: FancyBottomNavigation(
tabs: [
TabData(iconData: Icons.home, title: "Home"),
TabData(iconData: Icons.search, title: "Search"),
TabData(iconData: Icons.shopping_cart, title: "Basket")
],
onTabChangedListener: (position) {
setState(() {
currentPage = position;
});
},
)
tabs -> List of TabData
objects
onTabChangedListener -> Function to handle a tap on a tab, receives int position
initialSelection -> Defaults to 0
circleColor -> Defaults to null, derives from Theme
activeIconColor -> Defaults to null, derives from Theme
inactiveIconColor -> Defaults to null, derives from Theme
taxtColor -> Defaults to null, derives from Theme
barBagroundColor -> Defaults to null, derives from Theme
The bar will attempt to use your current theme out of the box, however you may want to theme it. Here are the attributes:
This package was inspired by a design on dribbble by Manoj Rajput:
https://dribbble.com/shots/5419022-Tab
Contributions are welcome, please submit a PR :)