Custom code with Algolia

Hi,

I am trying to alter the Algolia widget to include more filter options by creating a custom widget/action on FF but I am stuck on how to make it work. I am trying to create that basic functionality of having a search bar and a filter icon on the corner that allows me to filter based on a few field types (age, level of knowledge, gender, etc.)

I am pulling the repos for an example from the algolia github under the filter state and hoping to adjust the parameters as needed but I still can't make it work. (https://github.com/algolia/algoliasearch-helper-flutter/blob/main/helper/example/hits_searcher.dart)

Has anyone done something similar?

A few questions: do we need to declare dependencies for Algolia if I already have it enabled on FF?

Is it better to code a custom action (that does the query with the filters) and use the query on a list view? or better to write a custom widget with the code in it?

Any help is much appreciated!!

2
3 replies