Show the mode picker and the add-pane picker as menus on desktop

Phase 2b.2 of docs/plans/floating-windows.md, implemented by pipeline run
303: both use showAppChoiceMenu (a menu anchored to its button on a wide
app, a bottom sheet on a phone).
This commit is contained in:
2026-11-10 23:02:20 +00:00
parent 31f495fc18
commit 5fc3c9d3bd
7 changed files with 263 additions and 356 deletions
@@ -100,10 +100,12 @@ class ChatSearchField extends StatelessWidget {
required this.controller,
required this.onChanged,
this.trailing = const [],
this.autofocus = false,
});
final TextEditingController controller;
final ValueChanged<String> onChanged;
final bool autofocus;
/// Actions on the search row's trailing edge, as the web's chat toolbar
/// keeps New chat beside its search input.
@@ -120,6 +122,7 @@ class ChatSearchField extends StatelessWidget {
: TextField(
controller: controller,
onChanged: onChanged,
autofocus: autofocus,
decoration: const InputDecoration(
prefixIcon: Icon(Icons.search),
labelText: 'Search chats',