ResponsiveScaffold constructor

const ResponsiveScaffold({
  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. DrawerCallback? onDrawerChanged,
  10. Widget? endDrawer,
  11. DrawerCallback? onEndDrawerChanged,
  12. Widget? bottomNavigationBar,
  13. Widget? bottomSheet,
  14. Color? backgroundColor,
  15. bool? resizeToAvoidBottomInset,
  16. bool primary = true,
  17. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  18. bool extendBody = false,
  19. bool extendBodyBehindAppBar = false,
  20. Color? drawerScrimColor,
  21. double? drawerEdgeDragWidth,
  22. bool drawerEnableOpenDragGesture = true,
  23. bool endDrawerEnableOpenDragGesture = true,
  24. String? restorationId,
})

Responsive Scaffold

This scaffold will create an InheritedWidget with Spacing

Usage: Spacing.of(context)

  final ScaledSize margin;
  final ScaledSize padding;
  final ScaledSize gutter;
  final ScaledSize body;
  final LayoutColumns layoutColumns;

Implementation

const ResponsiveScaffold({
  Key? key,
  super.appBar,
  super.body,
  super.floatingActionButton,
  super.floatingActionButtonLocation,
  super.floatingActionButtonAnimator,
  super.persistentFooterButtons,
  super.drawer,
  super.onDrawerChanged,
  super.endDrawer,
  super.onEndDrawerChanged,
  super.bottomNavigationBar,
  super.bottomSheet,
  super.backgroundColor,
  super.resizeToAvoidBottomInset,
  super.primary = true,
  super.drawerDragStartBehavior = DragStartBehavior.start,
  super.extendBody = false,
  super.extendBodyBehindAppBar = false,
  super.drawerScrimColor,
  super.drawerEdgeDragWidth,
  super.drawerEnableOpenDragGesture = true,
  super.endDrawerEnableOpenDragGesture = true,
  super.restorationId,
}) : super(key: key);