Skip to content

Commit f2ed9a5

Browse files
authored
Merge pull request #473 from stryder-dev/Update-to-flutter-3.29.0
Update to flutter 3.29.0
2 parents 47e7ec9 + 28cad56 commit f2ed9a5

30 files changed

Lines changed: 551 additions & 158 deletions

.fvm/flutter_sdk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Users/lancejohnstone/fvm/versions/3.24.0

.fvm/fvm_config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"flutterSdkVersion": "3.24.0",
3+
"flavors": {}
4+
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [8.0.0]
2+
3+
#### (Flutter version support: v3.29.0)
4+
5+
- Adds all the flutter 3.29 additional properties for platform widgets
6+
- Removed deprecated parameters
7+
18
## [7.0.1]
29

310
#### (Flutter version support: v3.19.6)

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
ignoresPersistentStateOnLaunch = "NO"
5151
debugDocumentVersioning = "YES"
5252
debugServiceExtension = "internal"
53+
enableGPUValidationMode = "1"
5354
allowLocationSimulation = "YES">
5455
<BuildableProductRunnable
5556
runnableDebuggingMode = "0">

example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Flutter
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

example/lib/cupertino_date_picker.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,17 @@ class _CustomCupertinoDatePicker extends StatelessWidget {
153153
const _CustomCupertinoDatePicker({
154154
required this.contentData,
155155
required this.onDateTimeChanged,
156-
// ignore: unused_element
156+
// ignore: unused_element_parameter
157157
this.data,
158-
// ignore: unused_element
158+
// ignore: unused_element_parameter
159159
this.modalColor,
160-
// ignore: unused_element
160+
// ignore: unused_element_parameter
161161
this.modalHeight = 300,
162-
// ignore: unused_element
162+
// ignore: unused_element_parameter
163163
this.mode = CupertinoDatePickerMode.date,
164-
// ignore: unused_element
164+
// ignore: unused_element_parameter
165165
this.doneLabel,
166-
// ignore: unused_element
166+
// ignore: unused_element_parameter
167167
this.cancelLabel,
168168
Key? key,
169169
}) : super(key: key);

lib/src/platform.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ class MaterialModalSheetData extends _ModalSheetBaseData {
228228
String? barrierLabel;
229229
double? scrollControlDisabledMaxHeightRatio;
230230
bool? showDragHandle;
231+
AnimationStyle? sheetAnimationStyle;
231232

232233
MaterialModalSheetData({
233234
super.anchorPoint,
@@ -247,6 +248,7 @@ class MaterialModalSheetData extends _ModalSheetBaseData {
247248
this.barrierLabel,
248249
this.scrollControlDisabledMaxHeightRatio,
249250
this.showDragHandle,
251+
this.sheetAnimationStyle,
250252
});
251253
}
252254

@@ -300,6 +302,7 @@ Future<T?> showPlatformModalSheet<T>({
300302
material?.scrollControlDisabledMaxHeightRatio ??
301303
_defaultScrollControlDisabledMaxHeightRatio,
302304
showDragHandle: material?.showDragHandle,
305+
sheetAnimationStyle: material?.sheetAnimationStyle,
303306
);
304307
} else {
305308
return showCupertinoModalPopup<T>(

lib/src/platform_app.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,13 @@ abstract class _BaseRouterData {
108108
this.shortcuts,
109109
this.actions,
110110
this.onGenerateInitialRoutes,
111-
// ignore: unused_element
112111
this.highContrastDarkTheme,
113-
// ignore: unused_element
114112
this.highContrastTheme,
115113
this.routeInformationProvider,
116114
this.routeInformationParser,
117115
this.routerDelegate,
118116
this.routerConfig,
119117
this.backButtonDispatcher,
120-
// ignore: unused_element
121118
this.restorationScopeId,
122119
this.scrollBehavior,
123120
this.onNavigationNotification,
@@ -197,6 +194,8 @@ class MaterialAppData extends _BaseData {
197194
super.restorationScopeId,
198195
super.scrollBehavior,
199196
super.onNavigationNotification,
197+
super.highContrastDarkTheme,
198+
super.highContrastTheme,
200199
this.theme,
201200
this.debugShowMaterialGrid,
202201
this.darkTheme,
@@ -243,6 +242,10 @@ class MaterialAppRouterData extends _BaseRouterData {
243242
super.onGenerateInitialRoutes,
244243
super.scrollBehavior,
245244
super.onNavigationNotification,
245+
super.restorationScopeId,
246+
super.backButtonDispatcher,
247+
super.highContrastDarkTheme,
248+
super.highContrastTheme,
246249
this.theme,
247250
this.debugShowMaterialGrid,
248251
this.darkTheme,

lib/src/platform_app_bar.dart

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

4547
class 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

107109
class 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
}

lib/src/platform_checkbox.dart

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import 'package:flutter/cupertino.dart' show CupertinoCheckbox;
88
import 'package:flutter/material.dart'
9-
show Checkbox, MaterialTapTargetSize, MaterialStateProperty, VisualDensity;
9+
show Checkbox, MaterialTapTargetSize, VisualDensity;
1010
import 'package:flutter/widgets.dart';
1111

1212
import 'platform.dart';
@@ -25,6 +25,9 @@ abstract class _BaseData {
2525
this.autofocus,
2626
this.shape,
2727
this.side,
28+
this.mouseCursor,
29+
this.fillColor,
30+
this.semanticLabel,
2831
});
2932
final Key? widgetKey;
3033
final bool? value;
@@ -37,6 +40,9 @@ abstract class _BaseData {
3740
final bool? autofocus;
3841
final OutlinedBorder? shape;
3942
final BorderSide? side;
43+
final MouseCursor? mouseCursor;
44+
final WidgetStateProperty<Color?>? fillColor;
45+
final String? semanticLabel;
4046
}
4147

4248
class MaterialCheckboxData extends _BaseData {
@@ -53,27 +59,25 @@ class MaterialCheckboxData extends _BaseData {
5359
super.autofocus,
5460
super.shape,
5561
super.side,
62+
super.mouseCursor,
63+
super.fillColor,
64+
super.semanticLabel,
5665
//Material
57-
this.mouseCursor,
58-
this.fillColor,
66+
5967
this.hoverColor,
6068
this.overlayColor,
6169
this.splashRadius,
6270
this.materialTapTargetSize,
6371
this.visualDensity,
6472
this.isError = false,
65-
this.semanticLabel,
6673
});
6774

68-
final MouseCursor? mouseCursor;
69-
final MaterialStateProperty<Color?>? fillColor;
7075
final Color? hoverColor;
71-
final MaterialStateProperty<Color?>? overlayColor;
76+
final WidgetStateProperty<Color?>? overlayColor;
7277
final double? splashRadius;
7378
final MaterialTapTargetSize? materialTapTargetSize;
7479
final VisualDensity? visualDensity;
7580
final bool isError;
76-
final String? semanticLabel;
7781
}
7882

7983
class CupertinoCheckboxData extends _BaseData {
@@ -90,12 +94,10 @@ class CupertinoCheckboxData extends _BaseData {
9094
super.autofocus,
9195
super.shape,
9296
super.side,
93-
94-
//Cupertino
95-
this.inactiveColor,
97+
super.mouseCursor,
98+
super.fillColor,
99+
super.semanticLabel,
96100
});
97-
98-
final Color? inactiveColor;
99101
}
100102

101103
class PlatformCheckbox extends PlatformWidgetBase<CupertinoCheckbox, Checkbox> {
@@ -111,6 +113,9 @@ class PlatformCheckbox extends PlatformWidgetBase<CupertinoCheckbox, Checkbox> {
111113
final bool autofocus;
112114
final OutlinedBorder? shape;
113115
final BorderSide? side;
116+
final MouseCursor? mouseCursor;
117+
final WidgetStateProperty<Color?>? fillColor;
118+
final String? semanticLabel;
114119

115120
//Platform
116121
final PlatformBuilder<MaterialCheckboxData>? material;
@@ -130,6 +135,9 @@ class PlatformCheckbox extends PlatformWidgetBase<CupertinoCheckbox, Checkbox> {
130135
this.autofocus = false,
131136
this.shape,
132137
this.side,
138+
this.mouseCursor,
139+
this.fillColor,
140+
this.semanticLabel,
133141
//Platform
134142
this.material,
135143
this.cupertino,
@@ -143,8 +151,6 @@ class PlatformCheckbox extends PlatformWidgetBase<CupertinoCheckbox, Checkbox> {
143151
assert(tristate || value != null);
144152
return Checkbox(
145153
//Material
146-
mouseCursor: data?.mouseCursor,
147-
fillColor: data?.fillColor,
148154
hoverColor: data?.hoverColor,
149155
overlayColor: data?.overlayColor,
150156
splashRadius: data?.splashRadius,
@@ -163,7 +169,9 @@ class PlatformCheckbox extends PlatformWidgetBase<CupertinoCheckbox, Checkbox> {
163169
autofocus: data?.autofocus ?? autofocus,
164170
shape: data?.shape ?? shape,
165171
side: data?.side ?? side,
166-
semanticLabel: data?.semanticLabel,
172+
mouseCursor: data?.mouseCursor ?? mouseCursor,
173+
fillColor: data?.fillColor ?? fillColor,
174+
semanticLabel: data?.semanticLabel ?? semanticLabel,
167175
);
168176
}
169177

@@ -175,7 +183,7 @@ class PlatformCheckbox extends PlatformWidgetBase<CupertinoCheckbox, Checkbox> {
175183
assert(tristate || value != null);
176184
return CupertinoCheckbox(
177185
//Cupertino
178-
inactiveColor: data?.inactiveColor,
186+
// inactiveColor: Deprecated
179187
//Common
180188
key: data?.widgetKey ?? widgetKey,
181189
value: value,
@@ -188,6 +196,9 @@ class PlatformCheckbox extends PlatformWidgetBase<CupertinoCheckbox, Checkbox> {
188196
autofocus: data?.autofocus ?? autofocus,
189197
shape: data?.shape ?? shape,
190198
side: data?.side ?? side,
199+
fillColor: data?.fillColor ?? fillColor,
200+
mouseCursor: data?.mouseCursor ?? mouseCursor,
201+
semanticLabel: data?.semanticLabel ?? semanticLabel,
191202
);
192203
}
193204
}

0 commit comments

Comments
 (0)