@@ -33,13 +33,15 @@ abstract class _BaseData {
3333 this .backgroundColor,
3434 this .leading,
3535 this .automaticallyImplyLeading,
36+ this .bottom,
3637 });
3738
3839 final Widget ? title;
3940 final Color ? backgroundColor;
4041 final Widget ? leading;
4142 final Key ? widgetKey;
4243 final bool ? automaticallyImplyLeading;
44+ final PreferredSizeWidget ? bottom;
4345}
4446
4547class MaterialAppBarData extends _BaseData {
@@ -49,8 +51,8 @@ class MaterialAppBarData extends _BaseData {
4951 super .leading,
5052 super .widgetKey,
5153 super .automaticallyImplyLeading,
54+ super .bottom,
5255 this .actions,
53- this .bottom,
5456 this .bottomOpacity,
5557 this .centerTitle,
5658 this .elevation,
@@ -74,11 +76,10 @@ class MaterialAppBarData extends _BaseData {
7476 this .notificationPredicate,
7577 this .clipBehavior,
7678 this .forceMaterialTransparency,
79+ this .actionsPadding,
7780 });
7881
7982 final List <Widget >? actions;
80- final PreferredSizeWidget ? bottom;
81-
8283 final double ? bottomOpacity;
8384 final bool ? centerTitle;
8485 final double ? elevation;
@@ -102,6 +103,7 @@ class MaterialAppBarData extends _BaseData {
102103 final ScrollNotificationPredicate ? notificationPredicate;
103104 final Clip ? clipBehavior;
104105 final bool ? forceMaterialTransparency;
106+ final EdgeInsetsGeometry ? actionsPadding;
105107}
106108
107109class CupertinoNavigationBarData extends _BaseData {
@@ -111,6 +113,8 @@ class CupertinoNavigationBarData extends _BaseData {
111113 super .leading,
112114 super .widgetKey,
113115 super .automaticallyImplyLeading,
116+ super .bottom,
117+ this .automaticBackgroundVisibility,
114118 this .previousPageTitle,
115119 this .automaticallyImplyMiddle,
116120 this .padding,
@@ -120,6 +124,7 @@ class CupertinoNavigationBarData extends _BaseData {
120124 this .brightness,
121125 this .heroTag,
122126 this .noMaterialParent = false ,
127+ this .enableBackgroundFilterBlur,
123128 });
124129
125130 final Widget ? trailing;
@@ -130,6 +135,8 @@ class CupertinoNavigationBarData extends _BaseData {
130135 final String ? previousPageTitle;
131136 final EdgeInsetsDirectional ? padding;
132137 final Brightness ? brightness;
138+ final bool ? automaticBackgroundVisibility;
139+ final bool ? enableBackgroundFilterBlur;
133140
134141 /// When enabling [iosUsesMaterialWidgets] on [PlatformProvider] settings it will
135142 /// add a Material widget as a parent to both the leading and trailing widgets.
@@ -146,6 +153,7 @@ class PlatformAppBar
146153 final Widget ? leading;
147154 final List <Widget >? trailingActions;
148155 final bool ? automaticallyImplyLeading;
156+ final PreferredSizeWidget ? bottom;
149157
150158 final PlatformBuilder <MaterialAppBarData >? material;
151159 final PlatformBuilder <CupertinoNavigationBarData >? cupertino;
@@ -158,6 +166,7 @@ class PlatformAppBar
158166 this .leading,
159167 this .trailingActions,
160168 this .automaticallyImplyLeading,
169+ this .bottom,
161170 this .material,
162171 this .cupertino,
163172 });
@@ -170,7 +179,7 @@ class PlatformAppBar
170179 key: data? .widgetKey ?? widgetKey,
171180 title: data? .title ?? title,
172181 backgroundColor: data? .backgroundColor ?? backgroundColor,
173- bottom: data? .bottom,
182+ bottom: data? .bottom ?? bottom ,
174183 actions: data? .actions ?? trailingActions,
175184 automaticallyImplyLeading:
176185 data? .automaticallyImplyLeading ?? automaticallyImplyLeading ?? true ,
@@ -199,6 +208,7 @@ class PlatformAppBar
199208 data? .notificationPredicate ?? defaultScrollNotificationPredicate,
200209 clipBehavior: data? .clipBehavior,
201210 forceMaterialTransparency: data? .forceMaterialTransparency ?? false ,
211+ actionsPadding: data? .actionsPadding,
202212 );
203213 }
204214
@@ -241,6 +251,10 @@ class PlatformAppBar
241251 transitionBetweenRoutes: data? .transitionBetweenRoutes ?? true ,
242252 brightness: data? .brightness,
243253 heroTag: heroTag,
254+ automaticBackgroundVisibility:
255+ data? .automaticBackgroundVisibility ?? true ,
256+ bottom: data? .bottom ?? bottom,
257+ enableBackgroundFilterBlur: data? .enableBackgroundFilterBlur ?? true ,
244258 );
245259 }
246260
@@ -262,6 +276,10 @@ class PlatformAppBar
262276 .withWidgetFinder <CupertinoNavigationBar >(),
263277 transitionBetweenRoutes: data? .transitionBetweenRoutes ?? true ,
264278 brightness: data? .brightness,
279+ automaticBackgroundVisibility:
280+ data? .automaticBackgroundVisibility ?? true ,
281+ bottom: data? .bottom,
282+ enableBackgroundFilterBlur: data? .enableBackgroundFilterBlur ?? true ,
265283 //heroTag: , used above
266284 );
267285 }
0 commit comments