Closed bytejutsu closed 2 years ago
Check Issue 93 that explains what problems there are with web and some temporary solutions
Any better solution coming sometime soon? @KevMorelli
I saw that flutter_google_places states that it is compatible with flutter web but I just wanted to check if it only works with the workaround above?
Trying to search for "che" shows no results and throws the error:
[flutter_google_places_hoc081098] headers={}
[flutter_google_places_hoc081098] input=ch location=null origin=null
[flutter_google_places_hoc081098] ERROR XMLHttpRequest error. dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 906:28 get current
packages/http/src/browser_client.dart 71:22
This post advised, "In most cases of Flutter API use, add Access-Control-Allow-Origin value in header might resolve the issue," but I don't think that is possible for the "apiHeaders" parameter.
Is it advised to avoid using this package for production on web at this time due to it only working with the workaround?
Duplicate of #93, for now web is not supported.
I need an example on how to use this package on flutter for web to know how to include the google places API correctly. The package for web is showing me no search results for the moment.