我正在使用 Flutter 开发 google places API。我正在引用 example 工作.但是我得到了 google places API 类的错误
例如:
Undefined class 'GoogleMapsPlaces'. Try changing the name to the name of an existing class, or creating a class with the name
我将 flutter_google_places
导入到我的 dart 文件中:
import 'package:flutter_google_places/flutter_google_places.dart';
但我仍然遇到所有类的错误。
使用 flutter_google_places
版本 0.2.3
。
最佳答案
GoogleMapPlaces 可在不同的库中使用,而不是在 flutter_google_places 中...
关于flutter - Flutter 中的 Google Places API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57491700/