Reputation: 12629
Coming from npm, I deeply dislike the way Google handles package updates within Flutter. Instead of updating the pubspec.yaml on flutter pub upgrade
, it will only update the pubspec.lock.
To ensure that the pubspec.yaml is up to date, I have to run flutter pub outdated
and manually adjust the pubspec.yaml before running flutter pub upgrade
. I'm too lazy for that, it's no fun, I want this to be automated. The recommend versions of flutter pub outdated
should be set in the pubspec.yaml for me.
How to I do that?
Upvotes: 6
Views: 3196
Reputation: 652
you can use Ctrl+Space after a package name in pubspec.yaml to get the latest version.
you must press Ctrl+Space exactly one space after ' : ' to see the latest version.
cupertino_icons: <click Ctrl+Space here>
Upvotes: 4