Skip to content

Commit

Permalink
Search bar focus logic attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
r52 committed Aug 15, 2024
1 parent 77d125f commit 4f3ce6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/mangadex/search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,11 @@ class MangaDexSearchWidget extends HookConsumerWidget {
Expanded(
child: TextField(
textInputAction: TextInputAction.search,
autofocus: false,
autofocus: true,
autocorrect: false,
onTapOutside: (event) {
FocusManager.instance.primaryFocus?.unfocus();
},
controller: controller,
decoration: const InputDecoration(
icon: Icon(Icons.search),
Expand Down

0 comments on commit 4f3ce6a

Please sign in to comment.