WebPageWrapper constructor

WebPageWrapper({
  1. Key? key,
  2. Widget? child,
  3. List<Widget>? children,
  4. String? title,
  5. PreferredSizeWidget? appBar,
  6. WebPageController? controller,
  7. bool hasBottomBar = true,
  8. List<Widget>? persistentFooterButtons(
    1. BuildContext context
    )?,
  9. Widget? drawer(
    1. BuildContext context
    )?,
  10. DrawerCallback? onDrawerChanged(
    1. BuildContext context
    )?,
  11. Widget? endDrawer(
    1. BuildContext context
    )?,
  12. DrawerCallback? onEndDrawerChanged(
    1. BuildContext context
    )?,
  13. Widget? bottomNavigationBar(
    1. BuildContext context
    )?,
  14. Widget? bottomSheet(
    1. BuildContext context
    )?,
  15. Color? backgroundColor,
  16. bool? resizeToAvoidBottomInset,
  17. bool? primary,
  18. DragStartBehavior? drawerDragStartBehavior,
  19. bool? extendBody,
  20. bool? extendBodyBehindAppBar,
  21. Color? drawerScrimColor,
  22. double? drawerEdgeDragWidth,
  23. bool? drawerEnableOpenDragGesture,
  24. bool? endDrawerEnableOpenDragGesture,
  25. String? restorationId,
  26. ScrollPhysics? physics,
})

Supply the 'child' widget to display or a list of child widgets. Many are the Scaffold widget options.

Implementation

WebPageWrapper({
  Key? key,
  this.child,
  this.children,
  String? title,
  PreferredSizeWidget? appBar,
  WebPageController? controller,
  bool hasBottomBar = true,
  List<Widget>? Function(BuildContext context)? persistentFooterButtons,
  Widget? Function(BuildContext context)? drawer,
  DrawerCallback? Function(BuildContext context)? onDrawerChanged,
  Widget? Function(BuildContext context)? endDrawer,
  DrawerCallback? Function(BuildContext context)? onEndDrawerChanged,
  Widget? Function(BuildContext context)? bottomNavigationBar,
  Widget? Function(BuildContext context)? bottomSheet,
  Color? backgroundColor,
  bool? resizeToAvoidBottomInset,
  bool? primary,
  DragStartBehavior? drawerDragStartBehavior,
  bool? extendBody,
  bool? extendBodyBehindAppBar,
  Color? drawerScrimColor,
  double? drawerEdgeDragWidth,
  bool? drawerEnableOpenDragGesture,
  bool? endDrawerEnableOpenDragGesture,
  String? restorationId,
  ScrollPhysics? physics,
}) : super(
        controller: controller ??
            WebPageControllerWrapper(
              persistentFooterButtons: persistentFooterButtons,
              drawer: drawer,
              onDrawerChanged: onDrawerChanged,
              endDrawer: endDrawer,
              onEndDrawerChanged: onEndDrawerChanged,
              bottomNavigationBar: bottomNavigationBar,
              bottomSheet: bottomSheet,
              appBar: appBar,
              backgroundColor: backgroundColor,
              resizeToAvoidBottomInset: resizeToAvoidBottomInset,
              primary: primary,
              drawerDragStartBehavior: drawerDragStartBehavior,
              extendBody: extendBody,
              extendBodyBehindAppBar: extendBodyBehindAppBar,
              drawerScrimColor: drawerScrimColor,
              drawerEdgeDragWidth: drawerEdgeDragWidth,
              drawerEnableOpenDragGesture: drawerEnableOpenDragGesture,
              endDrawerEnableOpenDragGesture: endDrawerEnableOpenDragGesture,
              restorationId: restorationId,
              physics: physics,
            ),
        key: key,
        title: title,
        hasBottomBar: hasBottomBar,
      );