LATLNG 给出参数类型“LatLng”无法分配给参数类型“LatLng”
参数类型“LatLng(其中 LatLng 在 E:\flutter.pub-cache\hosted\pub.dartlang.org\latlong2-0.8.0\lib\latlong\LatLng.dart 中定义)”无法分配给参数类型'LatLng(其中LatLng在E:\flutter.pub-cache\hosted\pub.dartlang.org\latlong-0.6.1\lib\latlong\LatLng.dart中定义)'
以下是已注释掉的未使用的依赖项。
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
font_awesome_flutter: ^8.11.0
flutter:
sdk: flutter
firebase_core: ^0.7.0
firebase_analytics: ^7.0.1
firebase_auth: ^0.20.0+1
cloud_firestore: ^0.16.0
firebase_storage: ^7.0.0
readmore: ^2.0.0
google_fonts: ^1.1.1
google_sign_in: "^4.5.1"
flutter_login_facebook: ^0.4.2+3
# mapbox_gl: ^0.10.0
location: ^4.3.0
provider: ^4.3.3
image_picker: ^0.6.7+3
image_cropper: ^1.4.0
shared_preferences: ^0.5.3+4
# geolocator: 6.2.1
intl: ^0.16.1
http: ^0.12.0+2
geocoding: ^2.0.0
# geocoder: ^0.2.1
flutter_map: ^0.12.0
# latlong: ^0.8.0
# geoflutterfire: ^2.2.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.8.1
Run Code Online (Sandbox Code Playgroud)
Jaf*_*hup 10
作为 的维护者flutter_map,你应该这样做:
'flutter_map' 曾经自动为您导出该库,但现在不再这样了。此外,Dart 现在建议依赖所有使用过的包,无论它们是否由其他人导出。
自 v1.1.1 起,此内容已添加到文档网站中。
| 归档时间: |
|
| 查看次数: |
1637 次 |
| 最近记录: |