Google Places API 在 Flutter 中

sai*_*inu 2 dart google-places-api flutter

我正在使用 Flutter 开发 google place API。我正在通过参考示例进行工作。但我得到了谷歌地方 API 类的错误

例如:

未定义类“GoogleMapsPlaces”。尝试将名称更改为现有类的名称,或使用该名称创建一个类

我将flutter_google_placesdart 文件导入为:

import 'package:flutter_google_places/flutter_google_places.dart';但我仍然收到所有课程的错误。

使用flutter_google_places版本0.2.3.

在此输入图像描述

Hay*_*man 5

GoogleMapPlaces 可在不同的库上使用,而不是在 flutter_google_places 中使用...

它可以在https://pub.dev/packages/google_maps_webservice上找到