Toolvito

Calculates on this device. File exports run online.

Flutter Pubspec Validator

Paste or open pubspec.yaml to find mistakes before flutter pub get does: an invalid package name, a version that is not semantic, npm-style constraints such as ~1.2.0, wrong dependency sources, and asset or font entries that the flutter tool cannot use. Everything is checked in your browser.

Enter your values

Paste pubspec.yaml or open it. The page checks the fields, version constraints, dependencies, assets and fonts.

Your values

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Check.

Check a whole Flutter project

Check a Flutter project (ZIP) on the server

Choose a ZIP of your project (with pubspec.yaml), or pubspec.yaml files. The server checks the pubspec with a second reader and whether every asset and font file it names is in the project.

Or drop files here. YAML, YML, ZIP, APK, AAB, IPA, APPBUNDLE, BIN or JSON, up to 20 files, 1 GB each at most.

    The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to check a pubspec

    1. Choose A pubspec.yaml file and paste the file, or open it.
    2. Press Check. Errors come first, each with its line and field.
    3. The dependencies table says what each constraint allows (^1.2.2 allows >=1.2.2 <2.0.0).
    4. To check that every asset and font file is really in your project, choose a ZIP of the project in the box below.

    What is checked

    • name: lower-case letters, digits and _, not starting with a digit, not a reserved word of Dart.
    • version: three numbers with an optional -prerelease and +build (the build number of Android and iOS).
    • environment: sdk: needed, with a lower bound of at least 2.12.0 (null safety, which Dart 3 requires).
    • Dependencies: pub constraints (^, >=, >, <=, <, any; no ~, x or ||), one source each (sdk: flutter, path, git, hosted), no package depending on itself, none listed twice.
    • flutter: true or false for uses-material-design and generate; asset paths inside the project; font weights 100 to 900 and styles normal or italic.
    • Publishing: description length, http(s) addresses, at most 5 topics and 10 screenshots.

    Worked example

    intl: ~0.19.0 is an error, because pub has no ~ ranges: write ^0.19.0, which allows >=0.19.0 <0.20.0 (for 0.x versions the minor number is the breaking one).

    Limits you should know

    • The page reads the text only: it does not ask pub.dev which versions exist or resolve the dependencies.
    • Folders in assets: hold only the files directly inside them; the page says so, and the box below checks real folders.
    • Flavors, transformers and deferred components are listed as written, not applied.

    Privacy

    The pubspec is checked in your browser. Only the files you choose in the box below (and, if you tick it, the pubspec typed above) are sent to the Toolvito server. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    Related tools