BartBottomBar.material constructor

BartBottomBar.material({
  1. double? elevation,
  2. Color? bgColor,
  3. Color? selectedItemColor,
  4. Color? unselectedItemColor,
  5. BottomNavigationBarType? type,
  6. IconThemeData? iconThemeData,
  7. double selectedFontSize = 14.0,
  8. double unselectedFontSize = 12.0,
  9. double iconSize = 24,
  10. int index = 0,
})

Implementation

factory BartBottomBar.material(
        {double? elevation,
        Color? bgColor,
        Color? selectedItemColor,
        Color? unselectedItemColor,
        BottomNavigationBarType? type,
        IconThemeData? iconThemeData,
        double selectedFontSize = 14.0,
        double unselectedFontSize = 12.0,
        double iconSize = 24,
        int index = 0}) =>
    BartBottomBar._(
      bottomBarFactory: BartMaterialBottomBar.bottomBarFactory,
      elevation: elevation,
      bgColor: bgColor,
      selectedItemColor: selectedItemColor,
      unselectedItemColor: unselectedItemColor,
      type: type,
      iconThemeData: iconThemeData,
      selectedFontSize: selectedFontSize,
      unselectedFontSize: unselectedFontSize,
      iconSize: iconSize,
      currentIndex: ValueNotifier(index),
    );