We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Super strange behaviour, Meagher street should stay but it disappears when the street is added
street
void updateSearched(String searchTerm) { _searched.clear(); if (searchTerm.isEmpty) { setState(() { _searched = List.from(_clinics); }); } if (searchTerm.isNotEmpty) { for (var clinic in _clinics) { String clinicName = clinic['clinic']['name'].toLowerCase(); String clinicAddress = clinic['clinic']['address'].toLowerCase(); String clinicSpeciality = clinic['clinic']['speciality'].toLowerCase(); String clinicSuburb = clinic['clinic']['suburb'].toLowerCase(); Fuzzy fuzzy = Fuzzy([clinicName, clinicAddress, clinicSpeciality, clinicSuburb]); List<Result<dynamic>> results = fuzzy.search(searchTerm.toLowerCase()); if (results.isNotEmpty) { List<dynamic> matchedStrings = results.map((result) => result.item).toList(); print(matchedStrings); print(searchTerm); if (matchedStrings.length > 0) { _searched.add(clinic); break; } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Super strange behaviour, Meagher street should stay but it disappears when the
street
is addedKapture.2024-02-09.at.21.50.08.mp4
The text was updated successfully, but these errors were encountered: