@@ -10,6 +10,7 @@ import 'package:flutter_ui_challenges/core/data/models/menu.dart';
10
10
import 'package:flutter_ui_challenges/core/presentation/widgets/preview.dart' ;
11
11
import 'package:flutter_ui_challenges/features/auth/data/model/user.dart' ;
12
12
import 'package:flutter_ui_challenges/features/auth/data/model/user_repository.dart' ;
13
+ import 'package:flutter_ui_challenges/src/pages/bike/bike_details.dart' ;
13
14
import 'package:package_info/package_info.dart' ;
14
15
import 'package:provider/provider.dart' ;
15
16
import 'package:shared_preferences/shared_preferences.dart' ;
@@ -26,7 +27,7 @@ class _MainMenuState extends State<MainMenu> {
26
27
List <SubMenuItem > unseen;
27
28
bool dialogShowing;
28
29
bool showNewUiDialog;
29
-
30
+
30
31
@override
31
32
void initState () {
32
33
super .initState ();
@@ -65,7 +66,13 @@ class _MainMenuState extends State<MainMenu> {
65
66
children: < Widget > [
66
67
...pages.map ((page) => page is MenuItem
67
68
? _buildExpandableMenu (page, context)
68
- : _buildSubMenu (page, context))
69
+ : BorderedContainer (
70
+ margin: const EdgeInsets .symmetric (
71
+ vertical: 4.0 ,
72
+ horizontal: 8.0 ,
73
+ ),
74
+ padding: const EdgeInsets .all (0 ),
75
+ child: _buildSubMenu (page, context)))
69
76
],
70
77
);
71
78
}
@@ -148,15 +155,20 @@ class _MainMenuState extends State<MainMenu> {
148
155
return ;
149
156
}
150
157
});
151
- return ExpansionTile (
152
- leading: Icon (page.icon),
153
- title: Text (
154
- "${page .title } (${page .items .length } layouts)" ,
155
- style: TextStyle (
156
- fontWeight: FontWeight .bold,
157
- color: hasChanges ? Colors .deepOrange : Colors .black87),
158
+ return BorderedContainer (
159
+ margin: const EdgeInsets .symmetric (horizontal: 8.0 , vertical: 4.0 ),
160
+ padding: const EdgeInsets .all (0 ),
161
+ elevation: 0 ,
162
+ child: ExpansionTile (
163
+ leading: Icon (page.icon),
164
+ title: Text (
165
+ "${page .title } (${page .items .length } layouts)" ,
166
+ style: TextStyle (
167
+ fontWeight: FontWeight .bold,
168
+ color: hasChanges ? Colors .deepOrange : Colors .black87),
169
+ ),
170
+ children: _buildSubMenus (page.items, context),
158
171
),
159
- children: _buildSubMenus (page.items, context),
160
172
);
161
173
}
162
174
0 commit comments