MaterialScaffoldData.withBottomSheetScrimBuilder constructor

const MaterialScaffoldData.withBottomSheetScrimBuilder({
  1. required Widget? bottomSheetScrimBuilder(
    1. BuildContext,
    2. Animation<double>
    )?,
  2. Key? widgetKey,
  3. Color? backgroundColor,
  4. bool resizeToAvoidBottomInset = kDefaultResizeToAvoidBottomInset,
  5. Widget? body,
  6. PreferredSizeWidget? appBar,
  7. Widget? floatingActionButton,
  8. FloatingActionButtonLocation? floatingActionButtonLocation,
  9. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  10. List<Widget>? persistentFooterButtons,
  11. AlignmentDirectional persistentFooterAlignment = kDefaultPersistentFooterAlignment,
  12. BoxDecoration? persistentFooterDecoration,
  13. Widget? drawer,
  14. void onDrawerChanged(
    1. bool
    )?,
  15. Widget? endDrawer,
  16. void onEndDrawerChanged(
    1. bool
    )?,
  17. Widget? bottomSheet,
  18. bool primary = kPrimary,
  19. DragStartBehavior drawerDragStartBehavior = kDrawerDragStartBehavior,
  20. bool extendBody = kExtendBody,
  21. bool drawerBarrierDismissible = kDrawerBarrierDismissible,
  22. bool extendBodyBehindAppBar = kExtendBodyBehindAppBar,
  23. Color? drawerScrimColor,
  24. double? drawerEdgeDragWidth,
  25. bool drawerEnableOpenDragGesture = kDrawerEnableOpenDragGesture,
  26. bool endDrawerEnableOpenDragGesture = kEndDrawerEnableOpenDragGesture,
  27. String? restorationId,
})

Implementation

const MaterialScaffoldData.withBottomSheetScrimBuilder({
  required this.bottomSheetScrimBuilder,
  super.widgetKey,
  super.backgroundColor,
  super.resizeToAvoidBottomInset,
  super.body,
  this.appBar,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.persistentFooterAlignment = kDefaultPersistentFooterAlignment,
  this.persistentFooterDecoration,
  this.drawer,
  this.onDrawerChanged,
  this.endDrawer,
  this.onEndDrawerChanged,
  this.bottomSheet,
  this.primary = kPrimary,
  this.drawerDragStartBehavior = kDrawerDragStartBehavior,
  this.extendBody = kExtendBody,
  this.drawerBarrierDismissible = kDrawerBarrierDismissible,
  this.extendBodyBehindAppBar = kExtendBodyBehindAppBar,
  this.drawerScrimColor,
  this.drawerEdgeDragWidth,
  this.drawerEnableOpenDragGesture = kDrawerEnableOpenDragGesture,
  this.endDrawerEnableOpenDragGesture = kEndDrawerEnableOpenDragGesture,
  this.restorationId,
});