File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
veggieseasons/lib/screens Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 5
5
import 'package:flutter/cupertino.dart' ;
6
6
import 'package:go_router/go_router.dart' ;
7
7
8
+ const _bottomNavigationBarItemPadding = EdgeInsets .only (top: 4.0 );
9
+
8
10
class HomeScreen extends StatelessWidget {
9
11
const HomeScreen ({
10
12
super .key,
@@ -30,19 +32,31 @@ class HomeScreen extends StatelessWidget {
30
32
currentIndex: index,
31
33
items: const [
32
34
BottomNavigationBarItem (
33
- icon: Icon (CupertinoIcons .home),
35
+ icon: Padding (
36
+ padding: _bottomNavigationBarItemPadding,
37
+ child: Icon (CupertinoIcons .home),
38
+ ),
34
39
label: 'Home' ,
35
40
),
36
41
BottomNavigationBarItem (
37
- icon: Icon (CupertinoIcons .book),
42
+ icon: Padding (
43
+ padding: _bottomNavigationBarItemPadding,
44
+ child: Icon (CupertinoIcons .book),
45
+ ),
38
46
label: 'My Garden' ,
39
47
),
40
48
BottomNavigationBarItem (
41
- icon: Icon (CupertinoIcons .search),
49
+ icon: Padding (
50
+ padding: _bottomNavigationBarItemPadding,
51
+ child: Icon (CupertinoIcons .search),
52
+ ),
42
53
label: 'Search' ,
43
54
),
44
55
BottomNavigationBarItem (
45
- icon: Icon (CupertinoIcons .settings),
56
+ icon: Padding (
57
+ padding: _bottomNavigationBarItemPadding,
58
+ child: Icon (CupertinoIcons .settings),
59
+ ),
46
60
label: 'Settings' ,
47
61
),
48
62
],
You can’t perform that action at this time.
0 commit comments