ResponsiveNavigationScaffold constructor
const
ResponsiveNavigationScaffold({
- Key? key,
- required List<
ResponsiveNavigationDestination> destinations, - required int selectedIndex,
- required ValueChanged<
int> onDestinationSelected, - required Widget body,
- AppBar? appBar,
- ResponsiveBreakpoints breakpoints = const ResponsiveBreakpoints(),
- FloatingActionButton? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- Widget appBarLeadingBuilder(
- BuildContext context,
- VoidCallback? openDrawerCallback
- bool autoAdjustAppBarLeading = true,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- Widget? drawer,
- Widget? endDrawer,
- Color? drawerScrimColor,
- Color? backgroundColor,
- Widget? bottomSheet,
- bool? resizeToAvoidBottomInset,
- bool primary = true,
- DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
- bool extendBody = false,
- bool extendBodyBehindAppBar = false,
- double? drawerEdgeDragWidth,
- bool drawerEnableOpenDragGesture = true,
- bool endDrawerEnableOpenDragGesture = true,
- String? restorationId,
Implementation
const ResponsiveNavigationScaffold({
super.key,
required this.destinations,
required this.selectedIndex,
required this.onDestinationSelected,
required this.body,
this.appBar,
this.breakpoints = const ResponsiveBreakpoints(), // Default breakpoints
this.floatingActionButton,
this.floatingActionButtonLocation,
this.bottomNavigationBarBuilder,
this.navigationRailBuilder,
this.largeScreenNavigationBuilder,
this.extendNavigationRail = false,
this.appBarLeadingBuilder,
this.autoAdjustAppBarLeading = true,
this.floatingActionButtonAnimator,
this.persistentFooterButtons,
this.drawer,
this.endDrawer,
this.drawerScrimColor,
this.backgroundColor,
this.bottomSheet,
this.resizeToAvoidBottomInset,
this.primary = true,
this.drawerDragStartBehavior = DragStartBehavior.start,
this.extendBody = false,
this.extendBodyBehindAppBar = false,
this.drawerEdgeDragWidth,
this.drawerEnableOpenDragGesture = true,
this.endDrawerEnableOpenDragGesture = true,
this.restorationId,
});