What does flutter pub upgrade do?


 What does flutter pub upgrade do?


Did you know?

There's a subtle difference between pub get and pub upgrade:

  • pub get will get all dependencies, keeping the versions inside pubspec.lock.
  • pub upgrade will upgrade all dependencies to the latest non-major version, ignoring the pubspec.lock file.


    Also note:

    • If pubspec.lock doesn't exist yet, both commands behave identically.
    • Neither command updates any dependencies that are locked to a specific version (no caret syntax).

    To learn more, read these resources:

    Happy coding!

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

How to extract filename from Uri?

Now, we can extract filename with and without extension :) You will convert your bitmap to uri and get the real path of your file. Now w...