buildHeader method
Widget?
buildHeader(
)
override
Implementation
@override
Widget? buildHeader(BuildContext context, PlatformLayoutInfo layoutInfo) {
final overrideBg = widget.isWhiteBg ? sunnyColors.white : null;
return pageTitle == null
? null
: SunnyPageLayout.buildAppBar(
context,
headerHeight: widget.headerHeight,
centerTitle: layoutInfo.platformStyle == PlatformStyle.Cupertino,
pageTitle: pageTitle,
actions: widget.actions,
leading: widget.leading,
// auautomaticallyImplyLeading: widget.isImpliedLeading,
appBarColor: widget.appBarColor,
pageBackground: overrideBg,
onStretch: widget.onStretch,
expanded: widget.expanded,
showAppBarDivider: widget.showAppBarDivider,
);
}