createMaterialWidget method
Implementation
@override
Scaffold createMaterialWidget(BuildContext context) {
final data = material?.call(context, platform(context));
return Scaffold(
key: data?.widgetKey ?? widgetKey,
backgroundColor: data?.backgroundColor ?? backgroundColor,
body: data?.body ?? body,
appBar: data?.appBar ?? appBar?.createMaterialWidget(context),
bottomNavigationBar:
data?.bottomNavBar ?? bottomNavBar?.createMaterialWidget(context),
drawer: data?.drawer,
endDrawer: data?.endDrawer,
floatingActionButton: data?.floatingActionButton,
floatingActionButtonAnimator: data?.floatingActionButtonAnimator,
floatingActionButtonLocation: data?.floatingActionButtonLocation,
persistentFooterButtons: data?.persistentFooterButtons,
primary: data?.primary ?? true,
bottomSheet: data?.bottomSheet,
drawerDragStartBehavior:
data?.drawerDragStartBehavior ?? DragStartBehavior.start,
extendBody: data?.extendBody ?? false,
resizeToAvoidBottomInset: data?.resizeToAvoidBottomInset,
drawerScrimColor: data?.drawerScrimColor,
drawerEdgeDragWidth: data?.drawerEdgeDragWidth,
extendBodyBehindAppBar: data?.extendBodyBehindAppBar ?? false,
drawerEnableOpenDragGesture: data?.drawerEnableOpenDragGesture ?? true,
endDrawerEnableOpenDragGesture:
data?.endDrawerEnableOpenDragGesture ?? true,
onDrawerChanged: data?.onDrawerChanged,
onEndDrawerChanged: data?.onEndDrawerChanged,
restorationId: data?.restorationId,
persistentFooterAlignment:
data?.persistentFooterAlignment ?? AlignmentDirectional.centerEnd,
);
}