TF-1735 UnFocus input search after perform search action

(cherry picked from commit 61ea31c8424f027573106d4252d6c0eb69019b84)
This commit is contained in:
dab246
2023-05-05 10:20:34 +07:00
committed by Dat Vu
parent 76cf422102
commit fa5c4f35d4
2 changed files with 1 additions and 4 deletions
@@ -44,10 +44,6 @@ class QuickSearchInputForm<T, R> extends FormField<String> {
{Key? key,
String? initialValue,
bool getImmediateSuggestions = false,
@Deprecated('Use autovalidateMode parameter which provides more specific '
'behavior related to auto validation. '
'This feature was deprecated after Flutter v1.19.0.')
bool autovalidate = false,
bool enabled = true,
AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
FormFieldSetter<String>? onSaved,
@@ -118,6 +118,7 @@ class SearchInputFormWidget extends StatelessWidget with AppLoaderMixin {
}
void _invokeSearchEmailAction(BuildContext context, String query) {
dashBoardController.searchController.searchFocus.unfocus();
dashBoardController.searchController.enableSearch();
if (query.isNotEmpty) {