scaffold method
Scaffold
scaffold({
- Key? key,
- PreferredSizeWidget? appBar,
- Widget? body,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- Widget? drawer,
- void onDrawerChanged()?,
- Widget? endDrawer,
- void onEndDrawerChanged()?,
- Widget? bottomSheet,
- Color? backgroundColor,
- bool? resizeToAvoidBottomInset,
- bool primary = true,
- DragStartBehavior drawerDragStartBehavior = .start,
- bool extendBody = false,
- bool drawerBarrierDismissible = true,
- bool extendBodyBehindAppBar = false,
- Color? drawerScrimColor,
- Widget? bottomSheetScrimBuilder() = _defaultBottomSheetScrimBuilder,
- double? drawerEdgeDragWidth,
- bool drawerEnableOpenDragGesture = true,
- bool endDrawerEnableOpenDragGesture = true,
- 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,
);
}