MoltenBottomNavigationBar constructor
MoltenBottomNavigationBar({
- Key? key,
- double barHeight = kBottomNavigationBarHeight,
- Color? barColor,
- double domeHeight = 15.0,
- double domeWidth = 100,
- Color? domeCircleColor,
- double domeCircleSize = 50.0,
- required List<
MoltenTab> tabs, - EdgeInsets margin = EdgeInsets.zero,
- required int selectedIndex,
- required dynamic onTabChange(
- int index
- Duration? duration,
- Curve curve = Curves.linear,
- Color? borderColor,
- double borderSize = 0,
- BorderRadius? borderRaduis,
An animated bottom navigation that makes your app looks better with customizable attrinutes
Give an onTabChange callback to specify what will happen whenever a tab is selected. tabs are of type MoltenTab, use them to display selectable tabs.
Implementation
MoltenBottomNavigationBar({
Key? key,
this.barHeight = kBottomNavigationBarHeight,
this.barColor,
this.domeHeight = 15.0,
this.domeWidth = 100,
this.domeCircleColor,
this.domeCircleSize = 50.0,
required this.tabs,
this.margin = EdgeInsets.zero,
required this.selectedIndex,
required this.onTabChange,
this.duration,
this.curve = Curves.linear,
this.borderColor,
this.borderSize = 0,
this.borderRaduis,
}) : super(key: key);