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,
|
titleSpacing: 0,
|
||||||
backgroundColor: surfaceContainerLow,
|
backgroundColor: surfaceContainerLow,
|
||||||
),
|
),
|
||||||
menuTheme: MenuThemeData(
|
popupMenuTheme: PopupMenuThemeData(
|
||||||
style: MenuStyle(
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
||||||
backgroundColor: WidgetStatePropertyAll(primaryContainer),
|
color: surfaceContainerHigh,
|
||||||
),
|
|
||||||
),
|
),
|
||||||
textTheme: ThemeData(
|
textTheme: ThemeData(
|
||||||
fontFamilyFallback: ["sans", "emoji"],
|
fontFamilyFallback: ["sans", "emoji"],
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ extension ShowContextMenu on BuildContext {
|
||||||
overlay.size.width - globalPosition.dx,
|
overlay.size.width - globalPosition.dx,
|
||||||
overlay.size.height - globalPosition.dy,
|
overlay.size.height - globalPosition.dy,
|
||||||
),
|
),
|
||||||
color: Theme.of(this).colorScheme.surfaceContainerHighest,
|
|
||||||
items: children,
|
items: children,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue