Я использую VisualStudio в качестве IDE. При добавлении cloud_firestore: ^ 0.13.7 в качестве зависимости и запуске pub get я получаю следующую ошибку:
[firebase] flutter pub get
Running "flutter pub get" in firebase...
Because cloud_firestore >=0.13.4 depends on cloud_firestore_web ^0.1.1 which depends on firebase ^7.0.0, cloud_firestore >=0.13.4 requires firebase ^7.0.0.
So, because firebase depends on cloud_firestore ^0.13.7 and firebase is 1.0.0+1, version solving failed.
pub get failed (1; So, because firebase depends on cloud_firestore ^0.13.7 and firebase is 1.0.0+1, version solving failed.)
exit code 1".
Мой файл pubse c .yaml выглядит следующим образом:
name: firebase
description: A new Flutter project.
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cloud_firestore: ^0.13.7
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
Пожалуйста, помогите. Спасибо.