Open gumbarros opened 1 year ago
Here's a search I deviced:
let x be the search term, The results have to be list in the order below:
For this, we can add static data members to the stateless page widgets and use it as key for searching.
Also, as the list increases, we can asynchronously add matched to the search results. Ex: Loop over 1 and 2, show matches, loop over 3,4 and append is search box is still open, and so on.
Also, you mentioned tags, plural. Are multiple necessary? help me understand with a example plis.
Great algorithm! I was thinking in add the search tags on the Tool class as a List
@override
List<String> get searchTags => ["Formatter","JSON","Sort"]
https://github.com/fzyzcjy/flutter_smooth
Ensures smooth listview animations regardless of the size.
Found it on reddit, might be useful when search is being implemented.
Currently the searchbox only filter tools by menu name. The best way to search would be adding search tags plus the tool name in the menu and home page.