Use proper phone sheets for chat and Files menus

On phones the chat's More menu, chat list rows and Files entries open a
Material bottom sheet headed by the chat or file, with full-width icon
rows and destructive actions last in the error colour; desktop menus
show icons, a minimum width and destructive actions after a divider.
The chat menu drops Run command and Open chats, keeps a single terminal
entry and lists Close pane last.
This commit is contained in:
2026-11-13 01:14:12 +00:00
parent 26e68140fd
commit 046de9db4d
18 changed files with 668 additions and 126 deletions
@@ -71,9 +71,12 @@ void main() {
gateway.runs = [shellRecord('run_live')];
await tester.pumpWidget(shellThread(gateway));
await tester.pump();
await tester.tap(find.byKey(segmentedMoreKey).hitTestable().first);
await tester.pump(const Duration(milliseconds: 500));
expect(find.text('Run command…'), findsOneWidget);
// With nothing else to offer, the bar shows no More menu at all.
final more = find.byKey(segmentedMoreKey).hitTestable();
if (more.evaluate().isNotEmpty) {
await tester.tap(more.first);
await tester.pump(const Duration(milliseconds: 500));
}
expect(find.text('Dismiss all finished commands'), findsNothing);
});