Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Flutter is using the wrong versions of all my packages

As you can see from the image below, flutter is referencing the wrong versions.
Even after moving them into the override section running a flutter pub cache clean

What is going on?

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Thats because of caret sign ^. It means that the dependency can be updated to a newer version that is compatible with the current version of the package. For example, if you specify a dependency with ^1.0.0, it means that your app can use any version of the package greater than or equal to 1.0.0 and less than 2.0.0.

If you want exact versions remove caret sign & its safe to move entries under dependencies & not in override section.

The concept is called Semantic versioning, it is a convention for numbering software releases in a way that communicates the nature of changes in each version.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading