Move chat panes up, down, left and right by swapping with their neighbour

This commit is contained in:
2026-11-10 12:56:48 +00:00
parent 19aa726e7f
commit a410b9e5b7
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