flutter - Flutter 中的 Google Places API
问题描述
我正在使用 Flutter 开发 Google Places API。我正在通过参考示例来工作。但我得到了谷歌地方 API 类的错误
例如:
未定义的类“GoogleMapsPlaces”。尝试将名称更改为现有类的名称,或创建具有该名称的类
flutter_google_places
我在我的飞镖文件中导入了:
import 'package:flutter_google_places/flutter_google_places.dart';
但我仍然得到所有课程的错误。
使用flutter_google_places
版本0.2.3
。
解决方案
GoogleMapPlaces 在不同的库中可用,而不是在 flutter_google_places...
推荐阅读
- java - 如何通过 javac 编译一个 java web 应用程序?
- arduino - esp32 中的 Ap_mode 无法连接
- android - 尽管有规则,但 Firebase 权限被拒绝
- javascript - 如何在 Vue 中使用模块系统导入动态 v-bind:is 组件
- terraform - 错误:无法导入不存在的远程对象
- javascript - 在纯 Javascript 中,我如何确定在节点列表中单击了哪个元素
- html - 当我保存和刷新时,Html 文件不会更新
- wix - 如果指定的服务正在运行,我如何使用 WiX Toolset 中止卸载?
- java - 从 byte[] 替换字符串而不转换
- python - PIL ImageFont.truetype 使用变量导致错误:OSError: cannot open resource