Scaffold constructor

const Scaffold({
  1. Key? key,
  2. PreferredSizeWidget? appBar,
  3. Widget? body,
  4. Widget? floatingActionButton,
  5. FloatingActionButtonLocation? floatingActionButtonLocation,
  6. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  7. List<Widget>? persistentFooterButtons,
  8. AlignmentDirectional persistentFooterAlignment = AlignmentDirectional.centerEnd,
  9. BoxDecoration? persistentFooterDecoration,
  10. Widget? drawer,
  11. DrawerCallback? onDrawerChanged,
  12. Widget? endDrawer,
  13. DrawerCallback? onEndDrawerChanged,
  14. Widget? bottomNavigationBar,
  15. Widget? bottomSheet,
  16. Color? backgroundColor,
  17. bool? resizeToAvoidBottomInset,
  18. bool primary = true,
  19. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  20. bool extendBody = false,
  21. bool drawerBarrierDismissible = true,
  22. bool extendBodyBehindAppBar = false,
  23. Color? drawerScrimColor,
  24. Widget? bottomSheetScrimBuilder(
    1. BuildContext,
    2. Animation<double>
    ) = _defaultBottomSheetScrimBuilder,
  25. double? drawerEdgeDragWidth,
  26. bool drawerEnableOpenDragGesture = true,
  27. bool endDrawerEnableOpenDragGesture = true,
  28. String? restorationId,
})

Creates a visual scaffold for Material Design widgets.

Implementation

const Scaffold({
  super.key,
  this.appBar,
  this.body,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.persistentFooterAlignment = AlignmentDirectional.centerEnd,
  this.persistentFooterDecoration,
  this.drawer,
  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.drawerBarrierDismissible = true,
  this.extendBodyBehindAppBar = false,
  this.drawerScrimColor,
  this.bottomSheetScrimBuilder = _defaultBottomSheetScrimBuilder,
  this.drawerEdgeDragWidth,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
  this.restorationId,
});