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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user