Dart and Flutter

Dart and Flutter are supported only for Open Source.

Applicability

The following functions are available for Dart and Flutter:

  • Test your app's SBOM using pkg:pub

  • Test your app's packages using pkg:pub

Package managers and supported file extensions

For Dart and Flutter, Snyk supports Pub as a package manager and pub.dev as a package registry. It does not support any file formats.

Frameworks and libraries

Snyk does not support frameworks and libraries for Dart and Flutter.

Features

Snyk features are not supported for Dart and Flutter.

The Snyk FixPR feature is not available for Dart and Flutter. This means that you will not be notified if the PR checks fail when the following conditions are met:

  • The PR checks feature is enabled and configured to Only fail when the issues found have a fix available.

  • "Fixed in" available is set to Yes.

You can test an open-source package from Pub package manager:

Testing platform dependencies (iOS, macOS, Android) in Flutter Apps

Flutter applications rely on native platform dependencies to handle lower-level tasks, such as analytics, hardware access, or integrating existing functionality. These dependencies can be added through pub packages to extend functionality or integrated directly into build systems like Gradle or Cocoapods.

Snyk’s regular open-source support can scan these packages; however, a complete app build is necessary to make them available in the repository and accessible to CLI tools.

You can start by building the application for all relevant platforms. This ensures that pub fetches all required packages, and the Flutter build system establishes the necessary links for the native build systems.

flutter build apk --debug
flutter build ios --debug --no-codesign
flutter build macos --debug

Next, run the snyk monitor command to scan for native dependencies:

snyk monitor --all-projects --exclude=example,.symlinks

The --exclude parameter removes duplicates and ignores example applications, which are part of the plugin source code but not included in regular application builds.

You are now able to view in the Snyk Web UI all native dependencies, including those introduced by third-party plugins.

Snyk Project page showing dependencies in Flutter apps

Last updated

Was this helpful?