xScaffold method

Widget xScaffold(
  1. {bool extendBody = false,
  2. bool extendBodyBehindAppBar = false,
  3. PreferredSizeWidget appBar,
  4. Widget floatingActionButton,
  5. FloatingActionButtonLocation floatingActionButtonLocation,
  6. FloatingActionButtonAnimator floatingActionButtonAnimator,
  7. List<Widget> persistentFooterButtons,
  8. Widget drawer,
  9. Widget endDrawer,
  10. Color drawerScrimColor,
  11. Color backgroundColor,
  12. Widget bottomNavigationBar,
  13. Widget bottomSheet,
  14. bool resizeToAvoidBottomPadding,
  15. bool resizeToAvoidBottomInset,
  16. bool primary = true,
  17. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  18. double drawerEdgeDragWidth,
  19. Key key,
  20. bool drawerEnableOpenDragGesture = true,
  21. bool endDrawerEnableOpenDragGesture = true,
  22. void onDrawerChanged(
    1. bool
    ),
  23. void onEndDrawerChanged(
    1. bool
    ),
  24. 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,
  );
}