MoltenBottomNavigationBar constructor

MoltenBottomNavigationBar({
  1. Key? key,
  2. double barHeight = kBottomNavigationBarHeight,
  3. Color? barColor,
  4. double domeHeight = 15.0,
  5. double domeWidth = 100,
  6. Color? domeCircleColor,
  7. double domeCircleSize = 50.0,
  8. required List<MoltenTab> tabs,
  9. EdgeInsets margin = EdgeInsets.zero,
  10. required int selectedIndex,
  11. required dynamic onTabChange(
    1. int index
    ),
  12. Duration? duration,
  13. Curve curve = Curves.linear,
  14. Color? borderColor,
  15. double borderSize = 0,
  16. 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);