Skip to content

Commit

Permalink
fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Mar 9, 2024
1 parent 4d5d93d commit 3c55d7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ linter:
rules:
- avoid_function_literals_in_foreach_calls
- avoid_renaming_method_parameters
- avoid_returning_null
- avoid_unused_constructor_parameters
- await_only_futures
- camel_case_types
Expand Down
3 changes: 2 additions & 1 deletion lib/src/searchfield.dart
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,9 @@ class _SearchFieldState<T> extends State<SearchField<T>> {
}
return TextFieldTapRegion(
onTapOutside: (x) {
if (widget.onTapOutside != null)
if (widget.onTapOutside != null) {
widget.onTapOutside!(x);
}
_searchFocus!.unfocus();
},
child: Material(
Expand Down

0 comments on commit 3c55d7f

Please sign in to comment.