wrapInScaffold method
Implementation
Widget wrapInScaffold(BuildContext context, PlatformLayoutInfo info) {
final SunnyPage widget = state.widget;
final overrideBg = widget.isWhiteBg ? sunnyColors.white : null;
return CupertinoScaffold(
body: PlatformScaffold(
iosContentBottomPadding: widget.showTabBarWithKeyboard,
backgroundColor: overrideBg ?? sunnyColors.scaffoldBackground,
iosContentPadding: widget.isContentPadding,
cupertino: (context, platform) => CupertinoPageScaffoldData(
backgroundColor: overrideBg ?? sunnyColors.scaffoldBackground,
resizeToAvoidBottomInset: widget.isContentPadding,
resizeToAvoidBottomInsetTab: widget.isContentPadding,
backgroundColorTab: sunnyColors.white.withOpacity(0.2),
),
body: (widget.fab != null ||
widget.underlay != null ||
widget.overlay != null)
? Stack(
fit: StackFit.expand,
children: [
if (widget.underlay != null) widget.underlay!,
buildPageGuts(context, info),
if (widget.fab != null) widget.fab!(context),
if (widget.overlay != null) widget.overlay!,
],
)
: buildPageGuts(context, info),
),
);
}