Flutter, google_maps_flutter and webview_flutter are not match - flutter

i have webview_flutter: ^2.8.0 in my pubspec.yaml then i want to add google_maps_flutter: ^1.2.0 package but it doesn't match, can it be fix? or what other package to replace google_maps_flutter: ^1.2.0 because this is my company project and webview_flutter: ^2.8.0 is already in the pubspec.yaml from the beginning and i cannot remove it of course.
it shows something like this in output
Running "flutter pub get" in one-smile...
Because no versions of webview_flutter_platform_interface match >1.8.0 <1.8.1 and webview_flutter_platform_interface >=1.8.1 depends on plugin_platform_interface ^2.1.0, webview_flutter_platform_interface >1.8.0 requires plugin_platform_interface ^2.1.0.
And because webview_flutter_platform_interface 1.8.0 depends on plugin_platform_interface ^2.0.0, webview_flutter_platform_interface >=1.8.0 requires plugin_platform_interface ^2.0.0.
Because google_maps_flutter >=1.2.0 <2.0.0-nullsafety depends on google_maps_flutter_platform_interface ^1.2.0 which depends on plugin_platform_interface ^1.0.1, google_maps_flutter >=1.2.0 <2.0.0-nullsafety requires plugin_platform_interface ^1.0.1.
Thus, google_maps_flutter >=1.2.0 <2.0.0-nullsafety is incompatible with webview_flutter_platform_interface >=1.8.0.
And because webview_flutter 2.8.0 depends on webview_flutter_platform_interface ^1.8.0 and no versions of webview_flutter match >2.8.0 <3.0.0, google_maps_flutter >=1.2.0 <2.0.0-nullsafety is incompatible with webview_flutter ^2.8.0.
So, because onesmile depends on both webview_flutter ^2.8.0 and google_maps_flutter ^1.2.0, version solving failed.
pub get failed (1; So, because onesmile depends on both webview_flutter ^2.8.0 and google_maps_flutter ^1.2.0, version solving failed.)
exit code 1
and in debug console when i run it
Because no versions of webview_flutter_platform_interface match >1.8.0 <1.8.1 and webview_flutter_platform_interface >=1.8.1 depends on plugin_platform_interface ^2.1.0, webview_flutter_platform_interface >1.8.0 requires plugin_platform_interface ^2.1.0.
And because webview_flutter_platform_interface 1.8.0 depends on plugin_platform_interface ^2.0.0, webview_flutter_platform_interface >=1.8.0 requires plugin_platform_interface ^2.0.0.
Because google_maps_flutter >=1.2.0 <2.0.0-nullsafety depends on google_maps_flutter_platform_interface ^1.2.0 which depends on plugin_platform_interface ^1.0.1, google_maps_flutter >=1.2.0 <2.0.0-nullsafety requires plugin_platform_interface ^1.0.1.
Thus, google_maps_flutter >=1.2.0 <2.0.0-nullsafety is incompatible with webview_flutter_platform_interface >=1.8.0.
And because webview_flutter 2.8.0 depends on webview_flutter_platform_interface ^1.8.0 and no versions of webview_flutter match >2.8.0 <3.0.0, google_maps_flutter >=1.2.0 <2.0.0-nullsafety is incompatible with webview_flutter ^2.8.0.
So, because onesmile depends on both webview_flutter ^2.8.0 and google_maps_flutter ^1.2.0, version solving failed.
pub get failed (1; So, because onesmile depends on both webview_flutter ^2.8.0 and google_maps_flutter ^1.2.0, version solving failed.)

as you can see on pub.dev webview_flutter: ^2.8.0 is nearly two months old uses latest api to interact with flutter.
where your google_maps_flutter: ^1.2.0 is quite old so update it to any of below versions and it should work.

Related

flutter session version failed

This happens when i try to use the flutter_session 0.1.1, being stuck on this issue for 3 hours
Because shared_preferences_linux >=0.0.4-nullsafety <2.0.0 depends on shared_preferences_platform_interface ^2.0.0-nullsafety and shared_preferences_linux <0.0.2+1 depends on path_provider ^1.6.11, shared_preferences_linux <0.0.2+1 or >=0.0.4-nullsafety <2.0.0-∞ requires shared_preferences_platform_interface ^2.0.0-nullsafety or path_provider ^1.6.11.
And because path_provider >=1.6.4 <2.0.0-nullsafety depends on path_provider_platform_interface ^1.0.1, shared_preferences_linux <0.0.2+1 or >=0.0.4-nullsafety <2.0.0-∞ requires shared_preferences_platform_interface ^2.0.0-nullsafety or path_provider_platform_interface ^1.0.1.
And because shared_preferences_linux >=0.0.2+1 <0.0.4-nullsafety depends on path_provider_linux ^0.0.1 which depends on path_provider_platform_interface ^1.0.1, shared_preferences_linux <2.0.0 requires shared_preferences_platform_interface ^2.0.0-nullsafety or path_provider_platform_interface ^1.0.1.
And because shared_preferences >=0.5.8 <2.0.0-nullsafety depends on shared_preferences_linux ^0.0.2 and shared_preferences >=0.5.4+8 <2.0.0-nullsafety depends on shared_preferences_platform_interface ^1.0.0, shared_preferences >=0.5.8 <2.0.0-nullsafety requires path_provider_platform_interface ^1.0.1.
And because every version of flutter_session depends on shared_preferences ^0.5.8 and path_provider_platform_interface <2.0.0-nullsafety depends on plugin_platform_interface ^1.0.1, every version of flutter_session requires plugin_platform_interface ^1.0.1.
And because file_picker 5.2.2 depends on plugin_platform_interface ^2.1.2 and no versions of file_picker match >5.2.2 <6.0.0, flutter_session is incompatible with file_picker ^5.2.2.
So, because fyp depends on both file_picker ^5.2.2 and flutter_session ^0.1.1, version solving failed.
pub get failed (1; So, because fyp depends on both file_picker ^5.2.2 and flutter_session ^0.1.1, version solving failed.)
i don't understand this error and find a lot of sources on the internet but all of them are not related to this error

problem adding flutter_dialogflow dependency into flutter

I'm trying to make a chatbot using dialogflow in flutter and currently facing this error trying to add dialogflow dependency and i do not know how to solve it. can anyone help?
The current Dart SDK version is 2.16.2.
Because firebase_auth >=3.3.15 depends on firebase_auth_web ^3.3.13 and no versions of firebase_auth_web match >3.3.13 <4.0.0, firebase_auth >=3.3.15 requires firebase_auth_web 3.3.13.
(1) So, because firebase_auth_web 3.3.13 depends on http_parser ^4.0.0 and http >=0.11.3+17 <0.13.0-nullsafety.0 depends on http_parser >=0.0.1 <4.0.0, firebase_auth >=3.3.15 is incompatible with http >=0.11.3+17 <0.13.0-nullsafety.0. Because flutter_dialogflow <0.1.0 requires SDK version >=1.8.0 <2.0.0 and flutter_dialogflow >=0.1.0 <0.1.3 depends on http ^0.11.3+16, flutter_dialogflow <0.1.3 requires http ^0.11.3+16.
And because http >=0.2.8+2 <0.11.3+17 requires SDK version <2.0.0 and flutter_dialogflow >=0.1.3 depends on http ^0.12.0+2, every version of flutter_dialogflow requires http ^0.11.3+17 or ^0.12.0+2.
And because firebase_auth >=3.3.15 is incompatible with http >=0.11.3+17 <0.13.0-nullsafety.0 (1), firebase_auth >=3.3.15 is incompatible with flutter_dialogflow.
So, because knowyoursim_app depends on both firebase_auth ^3.3.15 and flutter_dialogflow any, version solving failed.
Running "flutter pub get" in knowyoursim_app...
pub get failed (1; So, because knowyoursim_app depends on both firebase_auth ^3.3.15 and flutter_dialogflow any, version solving failed.)
this is my dependencies
environment:
sdk: ">=2.16.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
style icons.
cupertino_icons: ^1.0.2
firebase_core: ^1.15.0
firebase_auth: ^3.3.15
test: ^1.19.5
bloc: ^8.0.3
flutter_bloc: ^8.0.1
equatable: ^2.0.3
flutter_launcher_icons: ^0.9.2
search_app_bar_page: ^2.1.2
#dialog_flowtter: ^0.3.3
bubble:
intl:
flutter_dialogflow:
Hi try those steps and it might work :
1 - type '$flutter clean' on console.
2 - then run '$flutter pub get' .
3 - then '$flutter pub outdated' .
4 - after that run '$flutter pub upgrade --major-versions' that should force it to upgrade your packages .
Make sure you are installing the latest dialogflow dependencies..
dialogflow_flutter: ^1.0.0
or try using this sdk: ">=2.17.0-182.2.beta <3.0.0".

Can't install permission_handler and file_picker because of cloud_firestore

I want to get data from Firestore, put it into a list and enable to user to download data on phone in CSV format by using app.
I found two solutions how to export data to CSV file on phone, but both solutions contains packages which I can't install.
Solution #1
How to create and export csv file in flutter?
Dependencies #1
dependencies:
page_view_indicators: ^2.0.0
syncfusion_flutter_xlsio: ^19.1.64-beta
csv: ^5.0.0
ext_storage: ^1.0.3
permission_handler: ^8.0.0+1
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
Problem #1
Because cloud_firestore >=0.13.1 <0.14.0-dev.1 depends on cloud_firestore_platform_interface ^1.0.0 which depends on plugin_platform_interface ^1.0.0, cloud_firestore >=0.13.1 <0.14.0-dev.1 requires plugin_platform_interface ^1.0.0.
And because permission_handler >=8.0.0 depends on permission_handler_platform_interface ^3.5.0 which depends on plugin_platform_interface ^2.0.0, cloud_firestore >=0.13.1 <0.14.0-dev.1 is incompatible with permission_handler >=8.0.0.
So, because gamiforms depends on both permission_handler ^8.0.0+1 and cloud_firestore ^0.13.3, version solving failed.
pub get failed (1; So, because gamiforms depends on both permission_handler ^8.0.0+1 and cloud_firestore ^0.13.3, version solving failed.)
exit code 1
Solution #2
https://medium.com/flutterdevs/exploring-csv-in-flutter-fafc57b02eb1
Dependencies #2
dependencies:
page_view_indicators: ^2.0.0
syncfusion_flutter_xlsio: ^19.1.64-beta
csv: ^5.0.0
ext_storage: ^1.0.3
file_picker: ^3.0.1
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
Problem #2
Because cloud_firestore >=0.13.1 <0.14.0-dev.1 depends on cloud_firestore_platform_interface ^1.0.0 which depends on plugin_platform_interface ^1.0.0, cloud_firestore >=0.13.1 <0.14.0-dev.1 requires plugin_platform_interface ^1.0.0.
And because file_picker >=3.0.0-nullsafety.3 depends on plugin_platform_interface ^2.0.0, cloud_firestore >=0.13.1 <0.14.0-dev.1 is incompatible with file_picker >=3.0.0-nullsafety.3.
So, because gamiforms depends on both file_picker ^3.0.1 and cloud_firestore ^0.13.3, version solving failed.
pub get failed (1; So, because gamiforms depends on both file_picker ^3.0.1 and cloud_firestore ^0.13.3, version solving failed.)
exit code 1
How to fix one of these problems or is there any another way how to export data to phone via app?
I've never done this before and every advice is welcome.
EDIT
dev_dependencies:
flutter_test:
sdk: flutter
cached_network_image: ^2.0.0
cloud_firestore: ^0.13.3
firebase_auth: ^0.15.2
provider: ^3.2.0
#google_sign_in: ^4.1.1
shared_preferences: ^0.5.6+3
random_string: ^2.0.1
In both the cases, you cloud_firestore is way too old. I see that the current version is
cloud_firestore: ^2.2.0
So, unless there is some problem with this version, you should migrate it to the latest version, which should be depending on a later version of plugin_platform_interface
cloud_firestore: ^2.2.0 depends on cloud_firestore_platform_interface: ^5.1.0 which depends on plugin_platform_interface: ^2.0.0.
So, change your pubsec.yaml file to have,
cloud_firestore: ^2.2.0
Then run, flutter pub get.

Unable to resolve dependancies after adding firebase_database

I added 'firebase_database' to pubspec.yaml and got the following error:
[components] flutter pub get
Running "flutter pub get" in components...
Because firebase_core >=1.0.0 <1.1.1 depends on firebase_core_platform_interface ^4.0.0 and firebase_core >=1.1.1 depends on firebase_core_platform_interface ^4.0.1, firebase_core >=1.0.0 requires firebase_core_platform_interface ^4.0.0.
And because firebase_database >=6.1.2 <7.0.0-dev.1 depends on firebase_core ^1.0.3, firebase_database >=6.1.2 <7.0.0-dev.1 requires firebase_core_platform_interface ^4.0.0.
And because firebase_core_platform_interface >=4.0.0 depends on plugin_platform_interface ^2.0.0 and path_provider_platform_interface <2.0.0-nullsafety depends on plugin_platform_interface ^1.0.1, firebase_database >=6.1.2 <7.0.0-dev.1 is incompatible with path_provider_platform_interface <2.0.0-nullsafety.
And because shared_preferences_windows <0.0.3-nullsafety depends on path_provider_platform_interface ^1.0.3 and shared_preferences 0.5.12+2 depends on shared_preferences_windows ^0.0.1, if firebase_database >=6.1.2 <7.0.0-dev.1 and shared_preferences 0.5.12+2 then shared_preferences_windows ^0.0.3-nullsafety.
And because shared_preferences_windows >=0.0.3-nullsafety <2.0.0 depends on shared_preferences_platform_interface ^2.0.0-nullsafety and shared_preferences 0.5.12+2 depends on shared_preferences_platform_interface ^1.0.0, firebase_database >=6.1.2 <7.0.0-dev.1 is incompatible with shared_preferences 0.5.12+2.
So, because components depends on both shared_preferences 0.5.12+2 and firebase_database ^6.1.2, version solving failed.
pub get failed (1; So, because components depends on both shared_preferences 0.5.12+2 and firebase_database ^6.1.2, version solving failed.)
exit code 1
This is my list of dependancies:
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
google_maps_flutter: ^1.0.6
http: ^0.12.0
json_serializable: ^3.3.0
bloc: ^6.1.0
flutter_bloc: ^6.1.0
equatable: ^1.2.5
graphql: ^4.0.1
graphql_flutter: ^4.0.1
flutter_google_places: ^0.2.4
google_maps_webservice: ^0.0.16
fluster: ^1.1.2
flutter_cache_manager: ^1.4.1
sliding_up_panel: ^1.0.2
image: ^2.1.14
flutter_svg: ^0.19.3
lottie: ^0.6.0
shared_preferences: '0.5.12+2'
intl: ^0.17.0
latlong: ^0.6.1
polyline: ^1.0.2
geolocator: ^5.3.1
auto_size_text_field: ^0.1.7
path_drawing: ^0.4.1
flutter_native_timezone: ^1.0.10
auto_size_text: ^2.1.0
charts_flutter: ^0.10.0
webview_flutter: ^2.0.4
firebase_database: ^6.1.2
Probably the dependency of package.
but if you still want to run it just don't specify the version,
just :
ex
firebase_core:
firebase_database:

issues with yaml packages for firestorm

Do you know, what is the problem here and how to solve?
[kuechenrechner] flutter pub get
Running "flutter pub get" in kuechenrechner...
Because firebase_auth >=1.0.1 depends on firebase_auth_web ^1.0.1 which depends on http_parser ^4.0.0, firebase_auth >=1.0.1 requires http_parser ^4.0.0.
And because http >=0.11.3+17 <0.13.0-nullsafety.0 depends on http_parser >=0.0.1 <4.0.0, firebase_auth >=1.0.1 is incompatible with http >=0.11.3+17 <0.13.0-nullsafety.0.
Because vin_decoder 0.1.3 depends on http ^0.12.2 and vin_decoder >=0.1.2 <0.1.3 depends on http ^0.12.1, vin_decoder >=0.1.2 <=0.1.3 requires http ^0.12.1.
Thus, firebase_auth >=1.0.1 is incompatible with vin_decoder >=0.1.2 <=0.1.3.
And because no version of vin_decoder match >0.1.3 <0.2.0, firebase_auth >=1.0.1 is incompatible with vin_decoder ^0.1.2.
And because validators 2.0.1 depends on vin_decoder ^0.1.2 and no versions of validators match >2.0.1 <3.0.0, firebase_auth >=1.0.1 is incompatible with validators ^2.0.1.
And because flutter_form_builder 5.0.0 depends on validators ^2.0.1 and no versions of flutter_form_builder match >5.0.0 <6.0.0, firebase_auth >=1.0.1 is incompatible with flutter_form_builder ^5.0.0.
So, because kuechenrechner depends on both flutter_form_builder ^5.0.0 and firebase_auth ^1.0.1, version solving failed.
pub get failed (1; So, because kuechenrechner depends on both flutter_form_builder ^5.0.0 and firebase_auth ^1.0.1, version solving failed.)
exit code 1
It seems like your Firebase packages depend on many other packages. You need to update all dependencies and packages along with Firebase.