MasterDetailScaffold constructor
const
MasterDetailScaffold({
- required WidgetBuilder masterPaneBuilder,
- required double masterPaneWidth,
- required PreferredSizeWidget detailsAppBar,
- required WidgetBuilder detailsPaneBuilder,
- required PreferredSizeWidget initialAppBar,
- required String initialRoute,
- required String detailsRoute,
- required DetailsPaneRouteChangedCallback onDetailsPaneRouteChanged,
- WidgetBuilder? initialDetailsPaneBuilder,
- double? twoPanesWidthBreakpoint,
- MasterDetailPageRouteBuilder? pageRouteBuilder,
- 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,
- Key? key,
Implementation
const MasterDetailScaffold(
{required this.masterPaneBuilder,
required this.masterPaneWidth,
required this.detailsAppBar,
required this.detailsPaneBuilder,
required this.initialAppBar,
required this.initialRoute,
required this.detailsRoute,
required this.onDetailsPaneRouteChanged,
this.initialDetailsPaneBuilder,
this.twoPanesWidthBreakpoint,
this.pageRouteBuilder,
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,
Key? key})
: assert(twoPanesWidthBreakpoint != null && twoPanesWidthBreakpoint > 0),
super(key: key);