Skip to content
Snippets Groups Projects
Commit f8f5d0d4 authored by vjrj's avatar vjrj
Browse files

Removed lint warning

parent 969bb83f
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ class _ContactSearchPageState extends State<ContactSearchPage> { ...@@ -42,6 +42,7 @@ class _ContactSearchPageState extends State<ContactSearchPage> {
bool _isLoading = false; bool _isLoading = false;
Future<void> _search() async { Future<void> _search() async {
final ContactsCubit contactsCubit = context.read<ContactsCubit>();
if (_searchTerm.length < 3) { if (_searchTerm.length < 3) {
ScaffoldMessenger.of(context).showSnackBar( ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(tr('search_limitation'))), SnackBar(content: Text(tr('search_limitation'))),
...@@ -53,7 +54,6 @@ class _ContactSearchPageState extends State<ContactSearchPage> { ...@@ -53,7 +54,6 @@ class _ContactSearchPageState extends State<ContactSearchPage> {
setState(() { setState(() {
_isLoading = true; _isLoading = true;
}); });
final ContactsCubit contactsCubit = context.read<ContactsCubit>();
setState(() { setState(() {
_results = contactsCubit.search(_searchTerm); _results = contactsCubit.search(_searchTerm);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment