WebPageWrapper constructor
WebPageWrapper({
- Key? key,
- Widget? child,
- List<
Widget> ? children, - String? title,
- PreferredSizeWidget? appBar,
- WebPageController? controller,
- bool hasBottomBar = true,
- Widget? drawer(
- BuildContext context
- DrawerCallback? onDrawerChanged(
- BuildContext context
- Widget? endDrawer(
- BuildContext context
- DrawerCallback? onEndDrawerChanged(
- BuildContext context
- Widget? bottomSheet(
- BuildContext context
- Color? backgroundColor,
- bool? resizeToAvoidBottomInset,
- bool? primary,
- DragStartBehavior? drawerDragStartBehavior,
- bool? extendBody,
- bool? extendBodyBehindAppBar,
- Color? drawerScrimColor,
- double? drawerEdgeDragWidth,
- bool? drawerEnableOpenDragGesture,
- bool? endDrawerEnableOpenDragGesture,
- String? restorationId,
- 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,
);