round menus
This commit is contained in:
parent
82860deff1
commit
5daa861a31
2 changed files with 3 additions and 5 deletions
|
|
@ -7,10 +7,9 @@ extension SchemeToTheme on ColorScheme {
|
|||
titleSpacing: 0,
|
||||
backgroundColor: surfaceContainerLow,
|
||||
),
|
||||
menuTheme: MenuThemeData(
|
||||
style: MenuStyle(
|
||||
backgroundColor: WidgetStatePropertyAll(primaryContainer),
|
||||
),
|
||||
popupMenuTheme: PopupMenuThemeData(
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
||||
color: surfaceContainerHigh,
|
||||
),
|
||||
textTheme: ThemeData(
|
||||
fontFamilyFallback: ["sans", "emoji"],
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ extension ShowContextMenu on BuildContext {
|
|||
overlay.size.width - globalPosition.dx,
|
||||
overlay.size.height - globalPosition.dy,
|
||||
),
|
||||
color: Theme.of(this).colorScheme.surfaceContainerHighest,
|
||||
items: children,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue