Skip to content

Commit d6dcf50

Browse files
committed
Update menu_sidebar_top.dart
1 parent bbb3fa6 commit d6dcf50

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/widgets/menu_sidebar_top.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ class SidebarTopMenu extends StatelessWidget {
1010
this.splashRadius = 14,
1111
this.tooltip,
1212
this.shape,
13+
this.menuPadding,
1314
});
1415
final Widget? child;
1516
final Offset offset;
1617
final double splashRadius;
1718
final String? tooltip;
1819
final ShapeBorder? shape;
19-
20+
final EdgeInsets? menuPadding;
2021
final Function(SidebarMenuOption)? onSelected;
2122

2223
@override
@@ -29,8 +30,8 @@ class SidebarTopMenu extends StatelessWidget {
2930
iconSize: 14,
3031
offset: offset,
3132
onSelected: onSelected,
32-
shape: RoundedRectangleBorder (borderRadius: BorderRadius. circular (12)),
33-
menuPadding: const EdgeInsets.symmetric(vertical: 3, horizontal: 8),
33+
shape: shape,
34+
menuPadding: menuPadding,
3435
itemBuilder: (BuildContext context) => SidebarMenuOption.values
3536
.map<PopupMenuEntry<SidebarMenuOption>>(
3637
(e) => PopupMenuItem<SidebarMenuOption>(

0 commit comments

Comments
 (0)