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. Widget? drawer,
  10. DrawerCallback? onDrawerChanged,
  11. Widget? endDrawer,
  12. DrawerCallback? onEndDrawerChanged,
  13. Widget? bottomNavigationBar,
  14. Widget? bottomSheet,
  15. Color? backgroundColor,
  16. bool? resizeToAvoidBottomInset,
  17. bool primary = true,
  18. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  19. bool extendBody = false,
  20. bool extendBodyBehindAppBar = false,
  21. Color? drawerScrimColor,
  22. double? drawerEdgeDragWidth,
  23. bool drawerEnableOpenDragGesture = true,
  24. bool endDrawerEnableOpenDragGesture = true,
  25. 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.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.extendBodyBehindAppBar = false,
  this.drawerScrimColor,
  this.drawerEdgeDragWidth,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
  this.restorationId,
});