Merge branch 'main' into worktree-agent-a5b6d89690dfcde6b

This commit is contained in:
2026-11-10 13:20:11 +00:00
15 changed files with 821 additions and 49 deletions
@@ -27,6 +27,7 @@ class SegmentedOverflowEntry {
required this.icon,
this.onPressed,
this.choices = const [],
this.shortcut,
});
final String label;
@@ -37,6 +38,10 @@ class SegmentedOverflowEntry {
/// Choices offered under the entry instead of [onPressed].
final List<SegmentedMenuChoice> choices;
/// The keyboard shortcut the Material menu lists beside the entry. It is
/// shown only; the owner handles the keys itself.
final MenuSerializableShortcut? shortcut;
}
/// A bar action the bar may move into its More menu. An action that is not
@@ -100,6 +105,7 @@ class SegmentedMoreButton extends StatelessWidget {
MenuItemButton(
leadingIcon: Icon(entry.icon),
onPressed: entry.onPressed,
shortcut: entry.shortcut,
child: Text(entry.label),
)
else