ScaffoldGlobalBottomNavigation constructor
const
ScaffoldGlobalBottomNavigation({
- Key? key,
- PreferredSizeWidget? appBar,
- required List<
Widget> listOfChild, - Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- Widget? drawer,
- Widget? endDrawer,
- Widget? bottomSheet,
- Color? backgroundColor,
- bool? resizeToAvoidBottomInset,
- bool primary = true,
- DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
- bool extendBody = false,
- bool extendBodyBehindAppBar = false,
- Color? drawerScrimColor,
- double? drawerEdgeDragWidth,
- bool drawerEnableOpenDragGesture = true,
- 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);