You can customize these attributes in the navigation bar.
Attributes
Type
Description
Default
showElevation
bool
Enable subtle shadow effect
true
items
List<InkblobBarItem>
Item data for NavigationBar
required
onItemSelected
Function(int)
Callback function when item tapped
null
selectedIndex
int
Selected item index of navigation bar.
required
previousIndex
int
Previously selected item index of navigation bar.
selectedIndex
iconSize
double
Size of icons.
24.0
backgroundColor
Color
Background color of [CustomNavigationBar]
Theme.bottomAppBarColor
containerHeight
double
Height of the NavigationBar
60
itemWidth
double
Total width of each item
2*containerHeight
curve
Curve
Animation curve of scale effect
Curves.easInOutExpo
animationDuration
Duration
Duration of the total animation
Duration(milliseconds: 270)
Attention: Both the selectedIndexandpreviousIndex are required for the animation to perform, an example of how to implement this is shown in the provided example app.
To customize the items in the navigation bar, just supply a list of InkblobBarItem like this.