Free tool

Pubspec checker

Paste your pubspec.yaml and see which packages are outdated, discontinued or a major version behind on pub.dev, with the updated file ready to copy.

10 dependencies found · Dart SDK ^3.5.0

Only package names are sent, straight from your browser to pub.dev’s public API. Your pubspec is not uploaded to this site.

Why I built this

When I open an older Flutter project, from my own YouTube builds or one someone sends me, the first job is always the same: find out which packages are out of date before flutter pub get fails or the build breaks on a new Flutter version. The official way is flutter pub outdated, but it needs the whole project, a working SDK and a successful resolve. Often I only have the pubspec.yaml, in a chat message or a GitHub repo, and I just want to know how far behind it is.

This checker reads the pubspec in your browser and asks pub.dev for the newest version of every package. It also flags what pub outdated doesn’t put front and centre: packages the author has discontinued, packages with no release in over two years, and new versions that need a newer Dart SDK than your project allows.

How to use it

  • Open pubspec.yaml in the root of your Flutter project and copy all of it.
  • Paste it into the box above and press Check packages.
  • Read the table from the top: discontinued packages and new major versions are listed first. The package name links to its changelog on pub.dev.
  • Copy the Updated pubspec.yaml. It keeps your comments and layout and only changes the version numbers.
  • Run flutter pub get, then build and test the app.

What each status means

  • Up to date: your constraint already allows the latest version, so flutter pub upgrade can get it without editing the file. For example ^6.1.2 allows 6.1.5.
  • New major: the latest version is outside your constraint, so pub will never pick it. ^0.13.6 means “at least 0.13.6 but below 0.14.0”, so it can’t reach http 1.x. Raising it can bring breaking changes, so read the changelog first.
  • Discontinued: the author has marked the package as no longer maintained. If they named a replacement, it is shown, for example flutter_markdown → flutter_markdown_plus.
  • No constraint: any or an empty version lets pub pick any version, including a future one that breaks your app. Pin it with a caret version.
  • Not checked: sdk: flutter packages update with Flutter itself, and git or path dependencies don’t come from pub.dev.
  • Not on pub.dev: a typo, a private package or one from a custom hosted server.

How Dart version constraints work

Most pubspec entries use the caret syntax. The caret allows every version up to the next breaking one, and the rule is different before 1.0.0:

  • ^2.3.1 means >=2.3.1 <3.0.0: any 2.x from 2.3.1.
  • ^0.13.6 means >=0.13.6 <0.14.0: for 0.x packages the minor number is the breaking one.
  • >=4.0.0 <5.0.0 is the long form of ^4.0.0.
  • 1.2.3 without a caret pins that exact version, which makes conflicts with other packages more likely.

The checker uses these same rules, including pub’s rule that <2.0.0 does not allow a 2.0.0-dev pre-release.

The same check in the terminal

Inside a project, flutter pub outdated gives the full picture, including packages you don’t list yourself. In output like this example, the columns map to this tool as follows:

Package Name        Current  Upgradable  Resolvable  Latest
direct dependencies:
http                *0.13.6  *0.13.6     1.6.0       1.6.0
google_fonts        *5.1.0   *5.1.0      *6.3.2      9.0.0
  • Upgradable: what flutter pub upgrade gets without editing the pubspec.
  • Resolvable: the newest version that works with all your other packages if you edit the pubspec.
  • Latest: the newest version on pub.dev, which is what this checker shows.

When Resolvable is lower than Latest, another package or your SDK is holding it back. flutter pub upgrade --major-versions raises every constraint for you, but I prefer to do it one package at a time so I know which upgrade broke what.

Common errors after upgrading, and how to fix them

  • version solving failed: two packages need different versions of a shared dependency. The error names the package; upgrade the one that holds it back, or leave that upgrade for later.
  • The current Dart SDK version is X. Because my_app depends on Y which requires SDK version >=Z: the new version needs a newer Flutter. Run flutter upgrade, or stay on the older package. This is the warning the checker shows as “needs Dart … or newer”.
  • flutter_localizations from sdk depends on intl …: some packages, such as intl, are pinned by the Flutter SDK itself. If pub refuses the latest intl, use the version your Flutter release pins, or any, for that one package.
  • Compile errors after a major upgrade: a class or method was renamed or removed. The package’s changelog lists each breaking change, usually with the new name to use, so read it before you start fixing errors one by one.

FAQ

Is my pubspec uploaded anywhere? No. The file is read in your browser. Only the package names are sent, directly to pub.dev/api/packages, the same public API the dart pub command uses.

Does it change transitive dependencies? No. It checks the packages you list. Run flutter pub outdated in the project to see everything in pubspec.lock.

Should I always upgrade to the latest major version? Not right before a release. Upgrade early in a cycle, one package at a time, and test. Discontinued packages are the ones to replace first, because they won’t get fixes for new Flutter, Android or iOS versions.

Building a new app? Start with my Flutter install guide and setState vs Provider, or browse the Flutter projects with source code.

More free Flutter tools