Skip to content

Commit d9a85d7

Browse files
committed
🚀 Migrate the example with Flutter 2.10
1 parent 0c205a2 commit d9a85d7

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

example/lib/pages/home_page.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,15 @@ class _HomePageState extends State<HomePage> {
124124
items: const <BottomNavigationBarItem>[
125125
BottomNavigationBarItem(
126126
icon: Icon(Icons.photo_library),
127-
// ignore: deprecated_member_use
128-
title: Text('Multi'),
127+
label: 'Multi',
129128
),
130129
BottomNavigationBarItem(
131130
icon: Icon(Icons.photo),
132-
// ignore: deprecated_member_use
133-
title: Text('Single'),
131+
label: 'Single',
134132
),
135133
BottomNavigationBarItem(
136134
icon: Icon(Icons.explore),
137-
// ignore: deprecated_member_use
138-
title: Text('Custom'),
135+
label: 'Custom',
139136
),
140137
],
141138
),

lib/src/widget/asset_picker.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ class AssetPicker<Asset, Path> extends StatefulWidget {
205205
if (light) {
206206
return ThemeData.light().copyWith(
207207
primaryColor: Colors.grey[50],
208-
primaryColorBrightness: Brightness.dark,
209208
primaryColorLight: Colors.grey[50],
210209
primaryColorDark: Colors.grey[50],
211210
canvasColor: Colors.grey[100],
@@ -230,9 +229,7 @@ class AssetPicker<Asset, Path> extends StatefulWidget {
230229
buttonTheme: ButtonThemeData(buttonColor: themeColor),
231230
colorScheme: ColorScheme(
232231
primary: Colors.grey[50]!,
233-
primaryVariant: Colors.grey[50]!,
234232
secondary: themeColor,
235-
secondaryVariant: themeColor,
236233
background: Colors.grey[50]!,
237234
surface: Colors.grey[50]!,
238235
brightness: Brightness.light,
@@ -247,7 +244,6 @@ class AssetPicker<Asset, Path> extends StatefulWidget {
247244
}
248245
return ThemeData.dark().copyWith(
249246
primaryColor: Colors.grey[900],
250-
primaryColorBrightness: Brightness.dark,
251247
primaryColorLight: Colors.grey[900],
252248
primaryColorDark: Colors.grey[900],
253249
canvasColor: Colors.grey[850],
@@ -272,9 +268,7 @@ class AssetPicker<Asset, Path> extends StatefulWidget {
272268
buttonTheme: ButtonThemeData(buttonColor: themeColor),
273269
colorScheme: ColorScheme(
274270
primary: Colors.grey[900]!,
275-
primaryVariant: Colors.grey[900]!,
276271
secondary: themeColor,
277-
secondaryVariant: themeColor,
278272
background: Colors.grey[900]!,
279273
surface: Colors.grey[900]!,
280274
brightness: Brightness.dark,

0 commit comments

Comments
 (0)