File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,14 @@ class SidebarTopMenu extends StatelessWidget {
10
10
this .splashRadius = 14 ,
11
11
this .tooltip,
12
12
this .shape,
13
+ this .menuPadding,
13
14
});
14
15
final Widget ? child;
15
16
final Offset offset;
16
17
final double splashRadius;
17
18
final String ? tooltip;
18
19
final ShapeBorder ? shape;
19
-
20
+ final EdgeInsets ? menuPadding;
20
21
final Function (SidebarMenuOption )? onSelected;
21
22
22
23
@override
@@ -29,8 +30,8 @@ class SidebarTopMenu extends StatelessWidget {
29
30
iconSize: 14 ,
30
31
offset: offset,
31
32
onSelected: onSelected,
32
- shape: RoundedRectangleBorder (borderRadius : BorderRadius . circular ( 12 )) ,
33
- menuPadding: const EdgeInsets . symmetric (vertical : 3 , horizontal : 8 ) ,
33
+ shape: shape ,
34
+ menuPadding: menuPadding ,
34
35
itemBuilder: (BuildContext context) => SidebarMenuOption .values
35
36
.map <PopupMenuEntry <SidebarMenuOption >>(
36
37
(e) => PopupMenuItem <SidebarMenuOption >(
You can’t perform that action at this time.
0 commit comments