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. Widget drawer,
  9. Widget endDrawer,
  10. Widget bottomNavigationBar,
  11. Widget bottomSheet,
  12. Color backgroundColor,
  13. bool resizeToAvoidBottomPadding,
  14. bool resizeToAvoidBottomInset,
  15. bool primary: true,
  16. DragStartBehavior drawerDragStartBehavior: DragStartBehavior.start,
  17. bool extendBody: false,
  18. bool extendBodyBehindAppBar: false,
  19. Color drawerScrimColor,
  20. double drawerEdgeDragWidth,
  21. bool drawerEnableOpenDragGesture: true,
  22. bool endDrawerEnableOpenDragGesture: true}
)

Creates a visual scaffold for material design widgets.

Implementation

const Scaffold({
  Key key,
  this.appBar,
  this.body,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.drawer,
  this.endDrawer,
  this.bottomNavigationBar,
  this.bottomSheet,
  this.backgroundColor,
  this.resizeToAvoidBottomPadding,
  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,
}) : assert(primary != null),
     assert(extendBody != null),
     assert(extendBodyBehindAppBar != null),
     assert(drawerDragStartBehavior != null),
     super(key: key);