mirror of
https://github.com/foss42/apidash.git
synced 2025-05-21 08:16:29 +08:00
Update menu_sidebar_top.dart
This commit is contained in:
@ -10,13 +10,14 @@ class SidebarTopMenu extends StatelessWidget {
|
|||||||
this.splashRadius = 14,
|
this.splashRadius = 14,
|
||||||
this.tooltip,
|
this.tooltip,
|
||||||
this.shape,
|
this.shape,
|
||||||
|
this.menuPadding,
|
||||||
});
|
});
|
||||||
final Widget? child;
|
final Widget? child;
|
||||||
final Offset offset;
|
final Offset offset;
|
||||||
final double splashRadius;
|
final double splashRadius;
|
||||||
final String? tooltip;
|
final String? tooltip;
|
||||||
final ShapeBorder? shape;
|
final ShapeBorder? shape;
|
||||||
|
final EdgeInsets? menuPadding;
|
||||||
final Function(SidebarMenuOption)? onSelected;
|
final Function(SidebarMenuOption)? onSelected;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -29,8 +30,8 @@ class SidebarTopMenu extends StatelessWidget {
|
|||||||
iconSize: 14,
|
iconSize: 14,
|
||||||
offset: offset,
|
offset: offset,
|
||||||
onSelected: onSelected,
|
onSelected: onSelected,
|
||||||
shape: RoundedRectangleBorder (borderRadius: BorderRadius. circular (12)),
|
shape: shape,
|
||||||
menuPadding: const EdgeInsets.symmetric(vertical: 3, horizontal: 8),
|
menuPadding: menuPadding,
|
||||||
itemBuilder: (BuildContext context) => SidebarMenuOption.values
|
itemBuilder: (BuildContext context) => SidebarMenuOption.values
|
||||||
.map<PopupMenuEntry<SidebarMenuOption>>(
|
.map<PopupMenuEntry<SidebarMenuOption>>(
|
||||||
(e) => PopupMenuItem<SidebarMenuOption>(
|
(e) => PopupMenuItem<SidebarMenuOption>(
|
||||||
|
Reference in New Issue
Block a user