The flutter plugin

This flutter plugin is useful for building Flutter based parts. This plugin uses the common plugin keywords as well as those for sources. For more information, see Snapcraft parts metadata.

Plugin-specific features and syntax are dependent on which base is being used, as outlined below:

See Flutter applications for a simple example, or search GitHub for projects using the plugin.

Further examples can also be found in the Ubuntu Flutter Community on GitHub.

This is a snapcraft plugin. See Snapcraft plugins and Supported plugins for further details on how plugins are used.

base: core24 | core22

  • flutter-channel (enum: [stable, master, beta], default: stable)
    The default flutter channel to use for the build.
  • flutter-target (string, default: lib/main.dart)
    The flutter target to build.

Requires Snapcraft version 8.0+ for core24.

Requires Snapcraft version 7.3+ for core22.

base: core18

This plugin uses the following plugin-specific keywords:
  • flutter-revision (string)
    Defines which Flutter revision to use for the build. This must be a valid revision from the Flutter repository.
  • flutter-target (string, default: lib/main.dart)
    The main entry-point file of the application.

Requires Snapcraft version 4.1.1+.

Last updated 2 months ago.