This video shows how to implement a search in flutter web. We create a search widget and implement search after the user enters input
Flutter Web and Search | Implement search in Flutter Web
Implement Search in Flutter Web
Let’s start with the algorithm
We extracted out the algorithm(StringSearch) for searching and put inside a separate file called string_search.dart
StringSearch(this.input, this.searchTerm)
input: ListString, e.g [‘Hey’, ‘there’]
searchTerm: String which the user searched. e.g here
Condition: Length of searchTerm should be more than 1 letter. e.g If the user searches for h, we return empty.
#flutter #web-development #programming #developer