BottomNavigationBarCustom constructor

const BottomNavigationBarCustom({
  1. required int totalScreen,
  2. required List<String> titleBottomNavigation,
  3. required List<Widget> iconBottomNavigation,
  4. required List<Widget> screens,
  5. Widget? floatingActionButton,
  6. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  7. FloatingActionButtonLocation? floatingActionButtonLocation,
  8. List<Widget> actions = const <Widget>[],
  9. List<Widget>? titleAppbar,
  10. Widget? drawer,
  11. Color? backgroundColor,
  12. Widget? imageLogoBuilder,
  13. IconThemeData? selectedItemTheme,
  14. IconThemeData? unSelectedItemTheme,
  15. TextStyle? selectedLabelStyle,
  16. TextStyle? unSelectedLabelStyle,
  17. double selectedFontSize = 14.0,
  18. Color selectedItemsColor = Colors.white,
  19. Color unselectedItemsColor = Colors.white70,
  20. bool showAppbar = false,
  21. bool showUnselectedLabels = false,
  22. bool showSelectedLabels = true,
})

Implementation

const BottomNavigationBarCustom({
  required this.totalScreen,
  required this.titleBottomNavigation,
  required this.iconBottomNavigation,
  required this.screens,
  this.floatingActionButton,
  this.floatingActionButtonAnimator,
  this.floatingActionButtonLocation,
  this.actions = const <Widget>[],
  this.titleAppbar,
  this.drawer,
  this.backgroundColor,
  this.imageLogoBuilder,
  this.selectedItemTheme,
  this.unSelectedItemTheme,
  this.selectedLabelStyle,
  this.unSelectedLabelStyle,
  this.selectedFontSize = 14.0,
  this.selectedItemsColor = Colors.white,
  this.unselectedItemsColor = Colors.white70,
  this.showAppbar = false,
  this.showUnselectedLabels = false,
  this.showSelectedLabels = true,
}) : assert(totalScreen > 1 && totalScreen <= 5);