ResponsiveScaffold constructor
const
ResponsiveScaffold({
- Key? key,
- void onLogOut()?,
- Widget? title,
- ValueChanged<
int> ? onSelect, - double railWidth = _kRailWidth,
- double breakpointShowFullMenu = _kBreakpointShowFullMenu,
- Widget? body,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- DrawerCallback? onDrawerChanged,
- Widget? endDrawer,
- DrawerCallback? onEndDrawerChanged,
- 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,
- String? restorationId,
- List<
Widget> ? actions,
Implementation
const ResponsiveScaffold({
Key? key,
// ResponsiveScaffold properties.
this.onLogOut,
this.title,
this.menuTitle,
this.menuLeadingTitle,
this.menuLeadingSubtitle,
this.menuLeadingAvatarLabel = '',
required this.menuItems,
this.menuItemsEnabled,
this.menuItemsIconState,
this.onSelect,
this.railWidth = _kRailWidth,
this.menuWidth = _kMenuWidth,
this.breakpointShowFullMenu = _kBreakpointShowFullMenu,
// Standard Scaffold properties, just passed along to Scaffold.
this.body,
this.floatingActionButton,
this.floatingActionButtonLocation,
this.floatingActionButtonAnimator,
this.persistentFooterButtons,
this.onDrawerChanged,
this.endDrawer,
this.onEndDrawerChanged,
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,
this.restorationId,
this.actions,
}) : super(key: key);