Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问这是什么意思? #31

Open
yuanmaio opened this issue Dec 29, 2023 · 1 comment
Open

请问这是什么意思? #31

yuanmaio opened this issue Dec 29, 2023 · 1 comment

Comments

@yuanmaio
Copy link

[flutter_google_places_hoc081098] input='SFO', location=null, origin=null
[flutter_google_places_hoc081098] ERROR ClientException: XMLHttpRequest error., uri=https://maps.googleapis.com/maps/api/place/autocomplete/json?input=SFO&language=fr&components=country%3Afr&key=AIzaSyDsesRQsdjmhTbCLktsi5oGZBsfF-KvpSY http://localhost:3000/dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 941:28 get current
http://localhost:3000/packages/http/src/browser_client.dart 95:22
http://localhost:3000/dart-sdk/lib/async/zone.dart 1661:54 runUnary
http://localhost:3000/dart-sdk/lib/async/future_impl.dart 162:18 handleValue
http://localhost:3000/dart-sdk/lib/async/future_impl.dart 846:44 handleValueCallback
http://localhost:3000/dart-sdk/lib/async/future_impl.dart 875:13 _propagateToListeners
http://localhost:3000/dart-sdk/lib/async/future_impl.dart 638:7 [_complete]
http://localhost:3000/dart-sdk/lib/async/stream_pipe.dart 59:43
http://localhost:3000/dart-sdk/lib/async/zone.dart 1655:54 run
http://localhost:3000/dart-sdk/lib/async/future_impl.dart 205:18 handleWhenComplete
http://localhost:3000/dart-sdk/lib/async/future_impl.dart 816:38 handleWhenCompleteCallback
http://localhost:3000/dart-sdk/lib/async/future_impl.dart 872:11 _propagateToListeners
http://localhost:3000/dart-sdk/lib/async/future_impl.dart 647:5 [_completeWithValue]
http://localhost:3000/dart-sdk/lib/async/future_impl.dart 721:7 callback
http://localhost:3000/dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop
http://localhost:3000/dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop
http://localhost:3000/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7

@yuanmaio
Copy link
Author

image
final p = await PlacesAutocomplete.show(
context: context,
apiKey: 'AIzaSyDsesRQsdjmhTbCLktsi5oGZBsfF-KvpSY',
onError: onError,
mode: _mode,
hint: address,
language: "es",
proxyBaseUrl: "https://cors-anywhere.herokuapp.com/https://maps.googleapis.com/maps/api",
components: [Component(Component.country, 'fr')],
// TODO: Since we supports Flutter >= 2.8.0
// ignore: deprecated_member_use
resultTextStyle: Theme.of(context).textTheme.subtitle1,
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant