Skip to content

Commit 4ac73cf

Browse files
committed
Removes deprecation warnings
1 parent 84657c5 commit 4ac73cf

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

lib/app_clone/shoes_store/shoes_store_page.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,31 +244,31 @@ class _ShoesStorePageState extends State<ShoesStorePage> {
244244
type: BottomNavigationBarType.fixed,
245245
items: [
246246
BottomNavigationBarItem(
247-
title: Text(''),
247+
label: '',
248248
icon: Icon(
249249
Icons.home,
250250
),
251251
),
252252
BottomNavigationBarItem(
253-
title: Text(''),
253+
label: '',
254254
icon: Icon(
255255
Icons.favorite_border,
256256
),
257257
),
258258
BottomNavigationBarItem(
259-
title: Text(''),
259+
label: '',
260260
icon: Icon(
261261
Icons.location_city,
262262
),
263263
),
264264
BottomNavigationBarItem(
265-
title: Text(''),
265+
label: '',
266266
icon: Icon(
267267
Icons.shopping_cart,
268268
),
269269
),
270270
BottomNavigationBarItem(
271-
title: Text(''),
271+
label: '',
272272
icon: Icon(
273273
Icons.person_outline,
274274
),

lib/app_clone/sports_store/sports_store_page.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,25 +159,25 @@ class _SportsStorePageState extends State<SportsStorePage> {
159159
type: BottomNavigationBarType.fixed,
160160
items: [
161161
BottomNavigationBarItem(
162-
title: Text(''),
162+
label: '',
163163
icon: Icon(
164164
Icons.home,
165165
),
166166
),
167167
BottomNavigationBarItem(
168-
title: Text(''),
168+
label: '',
169169
icon: Icon(
170170
Icons.shopping_basket,
171171
),
172172
),
173173
BottomNavigationBarItem(
174-
title: Text(''),
174+
label: '',
175175
icon: Icon(
176176
Icons.shopping_cart,
177177
),
178178
),
179179
BottomNavigationBarItem(
180-
title: Text(''),
180+
label: '',
181181
icon: Icon(
182182
Icons.wb_sunny,
183183
),

lib/appbar_sliverappbar/sample3.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ class Sample3 extends StatelessWidget {
3939
items: [
4040
BottomNavigationBarItem(
4141
icon: Icon(Icons.library_music),
42-
title: Text('Library'),
42+
label: 'Library',
4343
),
4444
BottomNavigationBarItem(
4545
icon: Icon(Icons.favorite),
46-
title: Text('Favorites'),
46+
label: 'Favorites',
4747
),
4848
BottomNavigationBarItem(
4949
icon: Icon(Icons.music_note),
50-
title: Text('Songs'),
50+
label: 'Songs',
5151
),
5252
BottomNavigationBarItem(
5353
icon: Icon(Icons.settings_input_antenna),
54-
title: Text('Radio'),
54+
label: 'Radio',
5555
),
5656
BottomNavigationBarItem(
5757
icon: Icon(Icons.search),
58-
title: Text('Search'),
58+
label: 'Search',
5959
),
6060
],
6161
),

0 commit comments

Comments
 (0)