There is no official solution for now yet..but there is a work around.. you just have to add this to your pubspec.yaml
dependency_overrides:
algolia_client_core: 1.27.1
algolia_client_insights: 1.27.1
algolia_client_search: 1.27.1
algoliasearch: 1.27.1
Please see the original post on Github