onCreateTabbar method
Implementation
Widget? onCreateTabbar() {
if (tabbarItems.isEmpty == true) {
return null;
}
final bottomNavigationBar = BottomNavigationBar(
elevation: elevation,
backgroundColor: bottomNavigationBarColor,
items: tabbarItems,
unselectedItemColor: unselectedItemColor,
selectedItemColor: selectedItemColor,
unselectedFontSize: unselectedFontSize,
selectedFontSize: selectedFontSize,
currentIndex: currentIndex,
type: tabbarType,
onTap: (index) {
currentIndex = index;
reload();
curIndexChanged();
},
);
return bottomNavigationBar;
}