BartBottomBar.material constructor

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

Implementation

factory BartBottomBar.material({
  bool enableHapticFeedback = true,
  int index = 0,
  Color? bgColor,
  Color? selectedItemColor,
  Color? unselectedItemColor,
  double? height,
  BottomNavigationBarType? type,
  IconThemeData? iconThemeData,
  double selectedFontSize = 14.0,
  double unselectedFontSize = 12.0,
  double iconSize = 24,
  double? elevation,
}) =>
    BartBottomBar._(
      enableHapticFeedback: enableHapticFeedback,
      bottomBarTheme: Material2BottomBarTheme().copyWith(
        bgColor: bgColor,
        selectedItemColor: selectedItemColor,
        unselectedItemColor: unselectedItemColor,
        type: type,
        iconThemeData: iconThemeData,
        elevation: elevation,
        height: height,
        iconSize: iconSize,
        selectedFontSize: selectedFontSize,
        unselectedFontSize: unselectedFontSize,
      ),
      theme: Theme.material,
      currentIndex: index,
    );