ScaffoldGlobalBottomNavigation constructor

const ScaffoldGlobalBottomNavigation({
  1. Key? key,
  2. PreferredSizeWidget? appBar,
  3. required List<Widget> listOfChild,
  4. required List<BottomNavigationItem> listOfBottomNavigationItem,
  5. Widget? floatingActionButton,
  6. FloatingActionButtonLocation? floatingActionButtonLocation,
  7. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  8. List<Widget>? persistentFooterButtons,
  9. Widget? drawer,
  10. Widget? endDrawer,
  11. Widget? bottomNavigationBar,
  12. Widget? bottomSheet,
  13. Color? backgroundColor,
  14. bool? resizeToAvoidBottomInset,
  15. bool primary = true,
  16. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  17. bool extendBody = false,
  18. bool extendBodyBehindAppBar = false,
  19. Color? drawerScrimColor,
  20. double? drawerEdgeDragWidth,
  21. bool drawerEnableOpenDragGesture = true,
  22. bool endDrawerEnableOpenDragGesture = true,
})

Implementation

const ScaffoldGlobalBottomNavigation({
  Key? key,
  this.appBar,
  required this.listOfChild,
  required this.listOfBottomNavigationItem,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.drawer,
  this.endDrawer,
  this.bottomNavigationBar,
  this.bottomSheet,
  this.backgroundColor,
  this.resizeToAvoidBottomInset,
  this.primary = true,
  this.drawerDragStartBehavior = DragStartBehavior.start,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.drawerScrimColor,
  this.drawerEdgeDragWidth,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
})  : assert(
              (listOfChild.length > 1 || listOfChild.length <= 6),
          'You should provide a valid list. This list must not be null and '
          'also number of widgets have to be '
          'between 2 and 6 widgets at max'),
      assert(
              (listOfBottomNavigationItem.length > 1 ||
                  listOfBottomNavigationItem.length <= 6),
          'You should provide a valid list. This list must not be null and '
          'also number of Widgets have to be '
          'between 2 and 6 bottom navigation item at max'),
      assert(
          listOfChild.length == listOfBottomNavigationItem.length,
          'The list of child widgets and the list of bottom navigation item '
          'must be equal in length '),
      super(key: key);