Google Places - Google places autocomplete widgets for flutter. No wrapper, use https://pub.dev/packages/google_maps_webservice. Maintainer: @juliansteenbakker
In the newest stable branch of flutter the build will fail with this error
../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_google_places-0.2.6/lib/src/flutter_google_places.dart:74:15: Error: The method 'ancestorStateOfType' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../Development/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'ancestorStateOfType'.
context.ancestorStateOfType(const TypeMatcher<PlacesAutocompleteState>());
Here's flutter doctor with it as well:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.4, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] VS Code (version 1.55.0)
[✓] Connected device (2 available)
In the newest stable branch of flutter the build will fail with this error
Here's flutter doctor with it as well:
flutter pub deps -- --style=compact
I'm aware of the changes in #140 and have tried this suggested fix as well as this one no avail.