xScaffold method
Widget
xScaffold(- {bool extendBody = false,
- bool extendBodyBehindAppBar = false,
- PreferredSizeWidget appBar,
- Widget floatingActionButton,
- FloatingActionButtonLocation floatingActionButtonLocation,
- FloatingActionButtonAnimator floatingActionButtonAnimator,
- Widget drawer,
- Widget endDrawer,
- Color drawerScrimColor,
- Color backgroundColor,
- Widget bottomNavigationBar,
- Widget bottomSheet,
- bool resizeToAvoidBottomPadding,
- bool resizeToAvoidBottomInset,
- bool primary = true,
- DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
- double drawerEdgeDragWidth,
- Key key,
- bool drawerEnableOpenDragGesture = true,
- bool endDrawerEnableOpenDragGesture = true,
- void onDrawerChanged(
- bool
),
- void onEndDrawerChanged(
- bool
),
- String restorationId}
)
Implementation
Widget xScaffold(
{final bool extendBody = false,
final bool extendBodyBehindAppBar = false,
final PreferredSizeWidget appBar,
final Widget floatingActionButton,
final FloatingActionButtonLocation floatingActionButtonLocation,
final FloatingActionButtonAnimator floatingActionButtonAnimator,
final List<Widget> persistentFooterButtons,
final Widget drawer,
final Widget endDrawer,
final Color drawerScrimColor,
final Color backgroundColor,
final Widget bottomNavigationBar,
final Widget bottomSheet,
final bool resizeToAvoidBottomPadding,
final bool resizeToAvoidBottomInset,
final bool primary = true,
final DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
final double drawerEdgeDragWidth,
final Key key,
final bool drawerEnableOpenDragGesture = true,
final bool endDrawerEnableOpenDragGesture = true,
final void Function(bool) onDrawerChanged,
final void Function(bool) onEndDrawerChanged,
String restorationId}) {
return Scaffold(
appBar: appBar,
body: this,
backgroundColor: backgroundColor,
bottomNavigationBar: bottomNavigationBar,
bottomSheet: bottomSheet,
drawer: drawer,
drawerDragStartBehavior: drawerDragStartBehavior,
drawerEdgeDragWidth: drawerEdgeDragWidth,
drawerScrimColor: backgroundColor,
endDrawer: endDrawer,
extendBody: extendBody,
extendBodyBehindAppBar: extendBodyBehindAppBar,
floatingActionButton: floatingActionButton,
floatingActionButtonAnimator: floatingActionButtonAnimator,
floatingActionButtonLocation: floatingActionButtonLocation,
key: key,
persistentFooterButtons: persistentFooterButtons,
primary: primary,
resizeToAvoidBottomInset: resizeToAvoidBottomInset,
drawerEnableOpenDragGesture: drawerEnableOpenDragGesture,
endDrawerEnableOpenDragGesture: endDrawerEnableOpenDragGesture,
onDrawerChanged: onDrawerChanged,
onEndDrawerChanged: onEndDrawerChanged,
restorationId: restorationId,
);
}