DrawerScaffold constructor
const
DrawerScaffold({
- Key? key,
- required Widget body,
- Widget? drawer,
- Widget? endDrawer,
- bool drawerEnableOverscrollGesture = true,
- bool endDrawerEnableOverscrollGesture = true,
- CustomScrollPhysicsController? physicsController,
- void onPhysicsControllerChanged()?,
- bool checkPhysicsControllerForOverscroll = false,
- bool implicitlyOverscrollableBody = false,
- bool implicitlyOverscrollableScaffold = false,
- ScrollPhysics? implicitPageViewScrollPhysics,
- bool drawerEnableOpenDragGesture = true,
- bool endDrawerEnableOpenDragGesture = true,
- double? drawerEdgeDragWidth,
- double? endDrawerEdgeDragWidth,
- List<
DrawerDragTrigger> ? drawerExtraDragTriggers, - List<
DrawerDragTrigger> ? endDrawerExtraDragTriggers, - DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
- Color? drawerScrimColor,
- DrawerCallback? onDrawerChanged,
- DrawerCallback? onEndDrawerChanged,
- Color? testColorForDrawerDragArea,
- Color? testColorForEndDrawerDragArea,
- Color? testColorForDrawerDragTriggers,
- Color? testColorForEndDrawerDragTriggers,
- PreferredSizeWidget? appBar,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- Widget? bottomSheet,
- Color? backgroundColor,
- bool? resizeToAvoidBottomInset,
- bool primary = true,
- bool extendBody = false,
- bool extendBodyBehindAppBar = false,
- String? restorationId,
Implementation
const DrawerScaffold({
Key? key,
required this.body,
this.drawer,
this.endDrawer,
this.drawerEnableOverscrollGesture = true,
this.endDrawerEnableOverscrollGesture = true,
this.physicsController,
this.onPhysicsControllerChanged,
this.checkPhysicsControllerForOverscroll = false,
this.implicitlyOverscrollableBody = false,
this.implicitlyOverscrollableScaffold = false,
this.implicitPageViewScrollPhysics,
this.drawerEnableOpenDragGesture = true,
this.endDrawerEnableOpenDragGesture = true,
this.drawerEdgeDragWidth,
this.endDrawerEdgeDragWidth,
this.drawerExtraDragTriggers,
this.endDrawerExtraDragTriggers,
this.drawerDragStartBehavior = DragStartBehavior.start,
this.drawerScrimColor,
this.onDrawerChanged,
this.onEndDrawerChanged,
this.testColorForDrawerDragArea,
this.testColorForEndDrawerDragArea,
this.testColorForDrawerDragTriggers,
this.testColorForEndDrawerDragTriggers,
// ===
this.appBar,
this.floatingActionButton,
this.floatingActionButtonLocation,
this.floatingActionButtonAnimator,
this.persistentFooterButtons,
this.bottomNavigationBar,
this.bottomSheet,
this.backgroundColor,
this.resizeToAvoidBottomInset,
this.primary = true,
this.extendBody = false,
this.extendBodyBehindAppBar = false,
this.restorationId,
}) : super(key: key);