mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 07:41:58 +00:00
Don't focus searchbar when migrating
The searchbar already has input.
This commit is contained in:
parent
d7dbce7a9a
commit
3313e6e53a
2 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ class _MigrationScreenScreenState extends ConsumerState<MigrationScreen> {
|
|||
});
|
||||
},
|
||||
controller: _textEditingController,
|
||||
autofocus: false,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue