Dependencies mismatch issues after importing my Flutter Flow's app source code into VS Code

Troubleshooting

I am getting several dependencies errors after importing the src code into VS Code for IPA file generation to build the application. Last error I got was

"Resolving dependencies... (3.0s)

Because http >=1.1.2 <1.2.1 depends on web >=0.3.0 <0.5.0 and shared_preferences_web 2.3.0 depends on web ^0.5.0, http >=1.1.2 <1.2.1 is incompatible with shared_preferences_web 2.3.0. And because no versions of shared_preferences_web match >=2.2.9 <2.3.0-โˆž or >2.3.0 <3.0.0, http >=1.1.2 <1.2.1 is incompatible with shared_preferences_web ^2.2.9. So, because ecom_app depends on both shared_preferences_web ^2.2.9 and http 1.2.0, version solving failed."

I got this error when I try to run the command "flutter pub get" which is required to run before running the command "pod init" in the root directory of the application folder in X-Code.

What have you tried so far?

I have tried upgrading all the dependencies , down grading it and manually removing dependencies one by one. Some dependencies can't be removed bcz it is pinned by flutter SDK.

Did you check FlutterFlow's Documentation for this topic?
Yes
1 reply