scaffold method

Scaffold 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 = .centerEnd,
  9. BoxDecoration? persistentFooterDecoration,
  10. Widget? drawer,
  11. void onDrawerChanged(
    1. bool
    )?,
  12. Widget? endDrawer,
  13. void onEndDrawerChanged(
    1. bool
    )?,
  14. Widget? bottomNavigationBar,
  15. Widget? bottomSheet,
  16. Color? backgroundColor,
  17. bool? resizeToAvoidBottomInset,
  18. bool primary = true,
  19. DragStartBehavior drawerDragStartBehavior = .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,
})

Returns a new Scaffold widget with the given body.

Implementation

Scaffold scaffold({
  Key? key,
  PreferredSizeWidget? appBar,
  Widget? body,
  Widget? floatingActionButton,
  FloatingActionButtonLocation? floatingActionButtonLocation,
  FloatingActionButtonAnimator? floatingActionButtonAnimator,
  List<Widget>? persistentFooterButtons,
  AlignmentDirectional persistentFooterAlignment = .centerEnd,
  BoxDecoration? persistentFooterDecoration,
  Widget? drawer,
  void Function(bool)? onDrawerChanged,
  Widget? endDrawer,
  void Function(bool)? onEndDrawerChanged,
  Widget? bottomNavigationBar,
  Widget? bottomSheet,
  Color? backgroundColor,
  bool? resizeToAvoidBottomInset,
  bool primary = true,
  DragStartBehavior drawerDragStartBehavior = .start,
  bool extendBody = false,
  bool drawerBarrierDismissible = true,
  bool extendBodyBehindAppBar = false,
  Color? drawerScrimColor,
  Widget? Function(BuildContext, Animation<double>) bottomSheetScrimBuilder =
      _defaultBottomSheetScrimBuilder,
  double? drawerEdgeDragWidth,
  bool drawerEnableOpenDragGesture = true,
  bool endDrawerEnableOpenDragGesture = true,
  String? restorationId,
}) {
  return Scaffold(
    appBar: appBar,
    backgroundColor: backgroundColor,
    bottomNavigationBar: bottomNavigationBar,
    bottomSheet: bottomSheet,
    bottomSheetScrimBuilder: bottomSheetScrimBuilder,
    drawer: drawer,
    drawerBarrierDismissible: drawerBarrierDismissible,
    drawerDragStartBehavior: drawerDragStartBehavior,
    drawerEdgeDragWidth: drawerEdgeDragWidth,
    drawerEnableOpenDragGesture: drawerEnableOpenDragGesture,
    drawerScrimColor: drawerScrimColor,
    endDrawer: endDrawer,
    endDrawerEnableOpenDragGesture: endDrawerEnableOpenDragGesture,
    extendBody: extendBody,
    extendBodyBehindAppBar: extendBodyBehindAppBar,
    floatingActionButton: floatingActionButton,
    floatingActionButtonAnimator: floatingActionButtonAnimator,
    floatingActionButtonLocation: floatingActionButtonLocation,
    key: key,
    onDrawerChanged: onDrawerChanged,
    onEndDrawerChanged: onEndDrawerChanged,
    persistentFooterAlignment: persistentFooterAlignment,
    persistentFooterButtons: persistentFooterButtons,
    persistentFooterDecoration: persistentFooterDecoration,
    primary: primary,
    resizeToAvoidBottomInset: resizeToAvoidBottomInset,
    restorationId: restorationId,
    body: this,
  );
}