createMaterialWidget method
Implementation
@override
SliverAppBar createMaterialWidget(BuildContext context) {
final data = material?.call(context, platform(context));
return SliverAppBar(
//Common
key: data?.widgetKey ?? widgetKey,
leading: data?.leading ?? leading,
automaticallyImplyLeading:
data?.automaticallyImplyLeading ?? automaticallyImplyLeading ?? true,
backgroundColor: data?.backgroundColor ?? backgroundColor,
stretch: data?.stretch ?? stretch ?? false,
title: data?.title ?? title,
//Material only
actions: data?.actions,
flexibleSpace: data?.flexibleSpace,
bottom: data?.bottom,
elevation: data?.elevation,
shadowColor: data?.shadowColor,
forceElevated: data?.forceElevated ?? false,
foregroundColor: data?.foregroundColor,
iconTheme: data?.iconTheme,
actionsIconTheme: data?.actionsIconTheme,
primary: data?.primary ?? true,
centerTitle: data?.centerTitle,
excludeHeaderSemantics: data?.excludeHeaderSemantics ?? false,
titleSpacing: data?.titleSpacing,
collapsedHeight: data?.collapsedHeight,
expandedHeight: data?.expandedHeight,
floating: data?.floating ?? false,
pinned: data?.pinned ?? false,
snap: data?.snap ?? false,
stretchTriggerOffset: data?.stretchTriggerOffset ?? 100.0,
onStretchTrigger: data?.onStretchTrigger,
shape: data?.shape,
toolbarHeight: data?.toolbarHeight ?? kToolbarHeight,
leadingWidth: data?.leadingWidth,
toolbarTextStyle: data?.toolbarTextStyle,
titleTextStyle: data?.titleTextStyle,
systemOverlayStyle: data?.systemOverlayStyle,
forceMaterialTransparency: data?.forceMaterialTransparency ?? false,
clipBehavior: data?.clipBehavior,
scrolledUnderElevation: data?.scrolledUnderElevation,
surfaceTintColor: data?.surfaceTintColor,
);
}