How to automatically upgrade Flutter dependencies to the latest major version

Want to quick and easily update the dependencies in pubspec.yaml to the latest version? The flutter pub is your best friend, simply put the following command in your terminal at the root of your project, and it will automatically update your dependencies to the latest version:

flutter pub upgrade --major-versions

Super convenient and a real time-saver!

1 year ago