diff --git a/mobile/apps/auth/lib/ui/home_page.dart b/mobile/apps/auth/lib/ui/home_page.dart index e54bab71441..c7b42269951 100644 --- a/mobile/apps/auth/lib/ui/home_page.dart +++ b/mobile/apps/auth/lib/ui/home_page.dart @@ -1484,27 +1484,35 @@ class _HomePageState extends State { ), title: !_showSearchBox ? const AuthLogoWidget(height: 18) - : TextField( - autocorrect: false, - enableSuggestions: false, - autofocus: _autoFocusSearch, - controller: _textController, - onChanged: (val) { - _searchText = val; - _applyFilteringAndRefresh(); - }, - onSubmitted: (_) { - if (_filteredCodes.isNotEmpty) { - // Move focus to the first item in the grid - _firstItemFocusNode.requestFocus(); - } + : GestureDetector( + onDoubleTap: () { + _textController.selection = TextSelection( + baseOffset: 0, + extentOffset: _textController.text.length, + ); }, - decoration: InputDecoration( - hintText: l10n.searchHint, - border: InputBorder.none, - focusedBorder: InputBorder.none, + child: TextField( + autocorrect: false, + enableSuggestions: false, + autofocus: _autoFocusSearch, + controller: _textController, + onChanged: (val) { + _searchText = val; + _applyFilteringAndRefresh(); + }, + onSubmitted: (_) { + if (_filteredCodes.isNotEmpty) { + // Move focus to the first item in the grid + _firstItemFocusNode.requestFocus(); + } + }, + decoration: InputDecoration( + hintText: l10n.searchHint, + border: InputBorder.none, + focusedBorder: InputBorder.none, + ), + focusNode: searchBoxFocusNode, ), - focusNode: searchBoxFocusNode, ), centerTitle: true, actions: [