


If you safely want to update the packages without breaking your code, run flutter pub upgrade

You see there is no breaking change for foo, since it is still on 1.x.x, however, bar has got a breaking change, it has been updated from 5.x.x to 6.x.x. It would now list something like: Dependencies Current Upgradable Resolvable Latest Let's say you have these packages in your pubspec.yaml file dependencies:Īnd at some point in future there is an update available for both of them, and you decide to run flutter pub outdated
