Sometimes flutter does not know whether to update the SDK version or not. Sometimes the pub library updates and conflicts with its own libraries


How to solve such a problem

We work it out step by step.

First of all, this dependency is generally referenced in the pub, first check the original author has the latest version, maybe solved it

But the class library we use is a 5 months have not updated the class library, it seems that is not count on no matter, we enter the pub home page

Github usually has github, let’s go to Github and if it doesn’t have a zip, then create one yourself

Then fork the project,clone it down and modify github.com/CaiJingLong…


Here is another library modification github.com/CaiJingLong…

I have modified the dependency used by the author here to a more recent version

And then go back to your app project


Then you can use it again

Git references can be found on the website of flutter. IO /using-packa… www.dartlang.org/tools/pub/d…