Merge main: keep pane moves and the floating chat; Float sits beside the move items
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user