Don't focus searchbar when migrating

The searchbar already has input.
This commit is contained in:
NBA2K1 2025-07-12 20:26:31 +02:00
parent d7dbce7a9a
commit 3313e6e53a
2 changed files with 4 additions and 1 deletions

View file

@ -7,6 +7,7 @@ class SeachFormTextField extends StatelessWidget {
final VoidCallback onSuffixPressed;
final TextEditingController controller;
final Function(String)? onFieldSubmitted;
final bool autofocus;
const SeachFormTextField({
super.key,
required this.onChanged,
@ -14,6 +15,7 @@ class SeachFormTextField extends StatelessWidget {
required this.controller,
this.onFieldSubmitted,
required this.onSuffixPressed,
this.autofocus = true,
});
@override
@ -21,7 +23,7 @@ class SeachFormTextField extends StatelessWidget {
final l10n = l10nLocalizations(context)!;
return Flexible(
child: TextFormField(
autofocus: true,
autofocus: autofocus,
controller: controller,
keyboardType: TextInputType.text,
onChanged: onChanged,

View file

@ -100,6 +100,7 @@ class _MigrationScreenScreenState extends ConsumerState<MigrationScreen> {
});
},
controller: _textEditingController,
autofocus: false,
),
],
),