Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nxrocks/nx-flutter

tinesoft13.4kMIT10.0.1TypeScript support: included

Nx plugin adding first class support for Flutter in your Nx workspace

nx-plugin, flutter, nx-workspace, nx, dart

readme

NxRocks! 🤘🏾

semantic-release

Security Rating Bugs Code Smells Maintainability Rating Lines of Code

Set of Nx plugins to enhance your Nx workspace (even more!)

Our Plugins

Status Name Description
nx-spring-boot Nx plugin to generate, run, package, build (and more) Spring Boot projects inside your Nx workspace
nx-flutter Nx plugin adding first class support for Flutter in your Nx workspace
nx-quarkus Nx plugin to generate, run, package, build (and more) Quarkus projects inside your Nx workspace
nx-micronaut Nx plugin to generate, run, package, build (and more) Micronaut projects inside your Nx workspace
nx-melos Nx plugin adding first class support for Melos in your Nx workspace
nx-ktor Nx plugin to generate, run, package, build (and more) Ktor projects inside your Nx workspace

Our custom CLIs

Status Name Description
create-nx-spring-boot CLI to create Nx workspaces with built-in support for Spring Boot
create-nx-flutter CLI to create Nx workspaces with built-in support for Flutter
create-nx-quarkus CLI to create Nx workspaces with built-in support for Quarkus
create-nx-micronaut CLI to create Nx workspaces with built-in support for Micronaut
create-nx-ktor CLI to create Nx workspaces with built-in support for Ktor

License

Copyright (c) 2020-present Tine Kondo. Licensed under the MIT License (MIT)

changelog

10.0.0 (2025-03-14)

🚀 Features

  • ⚠️ update Nx workspace to v20.1.2 (8989698)

⚠️ Breaking Changes

  • Nx v20 is now the minimal version to use the plugins

🧱 Updated Dependencies

  • Updated common to 5.0.0

❤️ Thank You

  • Tine Kondo

9.3.1 (2024-08-09)

🩹 Fixes

  • migrate to file references strategy for tracking versions of packages (31bc93b)

🧱 Updated Dependencies

  • Updated common to 4.1.5

❤️ Thank You

  • Tine Kondo @tinesoft

9.3.0 (2024-08-08)

🚀 Features

  • nx-flutter: add support for flutter pub related sub-commands (82d5579)

🩹 Fixes

  • migrate to workspace references strategy for tracking versions of packages (1a40ba7)

❤️ Thank You

  • Tine Kondo @tinesoft

9.2.0 (2024-08-07)

🚀 Features

  • nx-flutter: include . character when snake casing a project name to match dart conventions (06e7cde)

🩹 Fixes

  • fix incorrect versioning of packages and their internal dependencies (080f250)

🧱 Updated Dependencies

  • Updated common to 4.1.3

❤️ Thank You

  • Tine Kondo @tinesoft

9.1.2 (2024-08-01)

🩹 Fixes

  • nx-flutter: fix template type not properly inferred from .metadata file (027decc)

❤️ Thank You

  • Tine Kondo @tinesoft

9.1.1 (2024-07-19)

🩹 Fixes

  • fix targets avalaible for flutter projects (fd427fc)

❤️ Thank You

  • Tine Kondo @tinesoft

9.1.0 (2024-06-23)

🚀 Features

  • add useFvm in the plugin options (nx.json) to control whether to use FVMto run flutter (a4e9878)

🧱 Updated Dependencies

  • Updated common to null

❤️ Thank You

  • Tine Kondo @tinesoft

9.0.3 (2024-06-16)

🩹 Fixes

  • add empty targets in project.json when generating projects with inferred tasks (88a6e8a)

🧱 Updated Dependencies

  • Updated common to 4.1.2

❤️ Thank You

  • Tine Kondo @tinesoft

9.0.2 (2024-05-01)

🩹 Fixes

  • bump internal packages version (232e7d7)

❤️ Thank You

  • Tine Kondo @tinesoft

9.0.1 (2024-03-28)

🩹 Fixes

  • bump versions of packages to include changes in `common@4.0.1` (796333a)

  • bump version of create-nx-workspace and @nx/workspace (7126e20)

❤️ Thank You

  • Tine Kondo @tinesoft

9.0.0 (2024-03-26)

🚀 Features

  • ⚠️ update to support inferred tasks (Nx Project Crystal) (8a21e3f)

🩹 Fixes

  • remove gen, init, and generate aliases for project generator (e39ad3a)

  • fix base version for @nx/devkit to >=18.0.0 (d048cfe)

⚠️ Breaking Changes

  • Nx v18 is now the minimal version to use the plugins

❤️ Thank You

  • Tine Kondo @tinesoft

8.2.0 (2024-02-18)

Bug Fixes

  • common: fix creation of dependencies between nodes for ProjectGraph v2 (fa08ae0)
  • fix create-nx-* broken due to changes in Nx Cloud setup since Nx v17.3.0 (6c981d4)
  • fix Project Graph generation when creating projects in nested folders (b5698d3)

Features

  • common-jvm: improve retrieval of groupIdand artifactId when defined at parent level (9ea99ca)
  • common: add utilities to generate Project Graph using v2 API (c6f70e0)
  • common: update Project Graph generation for JVM projects with child modules (d9aba7f)
  • nx-flutter: migrate Project Graph generation to v2 API (2085e61)

8.1.0 (2023-12-12)

Features

  • add projectNameAndRootFormat option to better control where projects are generated (5c449b5)

8.0.2 (2023-11-16)

Bug Fixes

  • hide preset generators from Nx Console and improve generators decription (c868384)

8.0.1 (2023-10-28)

Bug Fixes

  • common: simplify the path to common utils (c87be7f)
  • nx-flutter: remove wrong dependency on common-jvm (e146bef)

8.0.0 (2023-10-22)

Bug Fixes

  • common: update dependencies used by the common module (e78ae32)

Features

  • common-jvm: move common JVM-related utils to a dedicated package (1bf12fb)
  • common: allow setting cacheable operations when add the plugin to nx.json (9fb5177)
  • update to Nx workspace v17.x.x (c5b4ef3), closes #195

BREAKING CHANGES

  • Nx v17.x.x is now the minimum required version to use the plugin

7.1.0 (2023-10-08)

Bug Fixes

  • common: fix ProjectGraph for Gradle multi-module projects (0ef0d17)
  • nx-flutter: fix format executor to use dart format (2f03466)

Features

  • common-cli: add common-cli to share code among our create-* CLI packages (bcb5fd2)
  • common: add utilities for multi-module maven/gradle projects (f2e4939)
  • common: add utilities to add maven/gradle modules (2237201)
  • create-nx-flutter: add custom CLI to create Flutter projects (5126425)
  • create-nx-spring-boot: add custom CLI to create Spring Boot projects (32ca53c)
  • nx-spring-boot: add support for creating multi-modules projects (7c2de5a)
  • update dependencies and fix lint issues (cfac383)

7.0.3 (2023-05-12)

Bug Fixes

  • common: fix dependency graph generation failure on windows OS (26ef7c4), closes #170
  • common: fix deprecated usage of dependency graph API (badf089)

7.0.2 (2023-05-06)

Bug Fixes

  • loosen peerDependencies on @nx/* to support v16.0.0 AND higher (fb2f8df)

7.0.1 (2023-05-04)

Bug Fixes

  • common: bump version of @nxrocks/common for Nx 16 support (980a86f), closes #169

7.0.0 (2023-05-03)

Features

  • update to Nx workspace v16.0.0 (ab11ea8)

BREAKING CHANGES

  • Nx v16.x.x is now the minimum required version to use the plugin

6.0.1 (2023-05-01)

Bug Fixes

  • nx-flutter: fix error when generating shareable package projects (1214fa7), closes #166

6.0.0 (2023-04-10)

Bug Fixes

  • nx-flutter: avoid generating files when running with --dry-run (d539208)

Features

  • common: add addMavenProperty helper and improve xpath matching (9f89c08)
  • common: add MavenDependency model (5ab8c1d)
  • nx-flutter: add support for Flutter Version Manager (fvm) (e9af459)
  • nx-flutter: leverage NX_INTERACTIVE for additional prompts (ffb0591)
  • nx-ktor: add nx-ktor plugin (cb74a79)

BREAKING CHANGES

  • nx-flutter: Nx v15.8.x is now the minimum required version to run the plugin

skipAdditionalPrompts option was removed (no longer necessary)

@nxrocks/nx-flutter-v5.3.0 (2023-02-28)

Bug Fixes

  • improve schemas of generators for a better UX in Nx Console (0214736)

@nxrocks/nx-flutter-v5.2.0 (2023-01-10)

Bug Fixes

  • common: fix bug when fetching dependencies of maven based projects (2ada704)

@nxrocks/nx-flutter-v5.1.0 (2022-12-05)

Bug Fixes

  • add {workspaceRoot} prefix (from Nx v15+) to targets' outputs (411b402)
  • common: fix Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close (fb5f797), closes #142
  • enforce plugin peerDependencies on Nx v15.0.0 and later (4c220bb)
  • fix transitive dependencies from @nxrocks/common (3594b1e), closes #131
  • fix transitive dependencies from @nxrocks/common (56631b2), closes #131 #150 #152 #153

Features

  • nx-spring-boot: add support for Kotlin DSL when using gradle (31063fe)
  • nx-spring-boot: align Java versions with Spring Initializr (1f6545d)
  • nx-spring-boot: set Java 17 as default version (f41c555)

@nxrocks/nx-flutter-v5.0.0 (2022-10-17)

Bug Fixes

  • common: fix regex used to fetch gradle dependencies (f1779a4)
  • nx-micronaut: fix generation without feature (#136) (76db010)

Features

  • common: increase the maxBuffer when running executors commands (4bc388d)
  • nx-micronaut: update JDK version from 16 -> 17 (a0e81e1), closes #135
  • update to Nx workspace v15.0.0 (a0af206), closes #138

BREAKING CHANGES

  • Nx v15.x.x is now the minimum required version to use the plugin

@nxrocks/nx-flutter-v4.0.2 (2022-08-25)

Bug Fixes

  • fix executor output not restored when found in Nx cache (fbb385a), closes #111

@nxrocks/nx-flutter-v4.0.1 (2022-08-22)

Bug Fixes

  • fix installation issue due to hpagent not being found (3620d23), closes #128

@nxrocks/nx-flutter-v4.0.0 (2022-08-21)

Bug Fixes

  • nx-flutter: fix non-interactive generation of flutter projects (6c4a5aa)
  • set @nrwl/* packages as peerDependencies (d03b709), closes #106

Features

  • nx-flutter: add doctor executor to run flutter doctor checks (9d35de1)
  • nx-flutter: make all build executors results cacheable (a08dbb8)
  • nx-flutter: rename executors to use kebab-case (319558f)
  • nx-micronaut: add nx-micronaut plugin (08d6099)

BREAKING CHANGES

  • nx-flutter: interactive option has been renamed into skipAdditionalPrompts

interactive is a reserved option for nx generate command, that gets deleted once Nx has interpreted it, so we need our own. Must still be combined with --no-interactive (from Nx), for fully non-interactivity

  • nx-flutter: All executors of this plugin now use kebab-case over camelCase for consistency

This only affects buildAar, buildApk, buildAppbundle, buildBundle, buildIos, buildIosFramework, buildIpa, and genL10n executors, which have been renamed into build-aar, build-apk, build-appbundle, build-bundle, build-ios, build-ios-framework, build-ipa, and gen-l10n respectively.

@nxrocks/nx-flutter-v3.0.2 (2022-02-16)

Bug Fixes

  • wrong @nxrocks/common version referenced in dependent packages (1b4b0e6)

@nxrocks/nx-flutter-v3.0.1 (2022-02-15)

Bug Fixes

  • include updated package.json in git when semantic releasing (cb87139)

@nxrocks/nx-flutter-v3.0.0 (2021-08-23)

Bug Fixes

  • correct TypeError: builder.getProjectGraph is not a function (3458f66), closes #72
  • nx-flutter: add plugin to nx.json only if not included already (b98c1e9)

Features

  • nx-flutter: use NX_VERBOSE_LOGGING to control logs in dep graph (e678ed5)

BREAKING CHANGES

  • Nx v12.6.x is now the minimum version required to use the plugins

This is due to breaking changes in DevKit's project graph API starting from v12.6.x

@nxrocks/nx-flutter-v2.1.0 (2021-04-26)

Features

  • nx-flutter: add support for Nx 's dependency graph generation (6fb58de), closes #28

@nxrocks/nx-flutter-v2.0.0 (2021-04-02)

Bug Fixes

  • nx-flutter: fix error when generating module or package (86eb3f8), closes #44

Features

  • nx-flutter: create project in apps or libs based on template (dc20e0b), closes #41
  • nx-flutter: migrate to Nrwl's DevKit executors/generators API (8c72ed5)
  • nx-flutter: rename the application generator into project (6361557)

BREAKING CHANGES

  • nx-flutter: the app alias has been replaced with one of [proj, new, gen, init, generate].
  • nx-flutter: Nx workspace v11 is now the minimum version required to use this plugin.

In fact, all executors/schematics have been rewritten into executors/generators using its new @nrwl/devkit API.

@nxrocks/nx-flutter-v2.0.0-beta.1 (2021-04-02)

Bug Fixes

  • nx-flutter: fix error when generating module or package (86eb3f8), closes #44

Features

  • nx-flutter: create project in apps or libs based on template (dc20e0b), closes #41
  • nx-flutter: migrate to Nrwl's DevKit executors/generators API (8c72ed5)
  • nx-flutter: rename the application generator into project (6361557)

BREAKING CHANGES

  • nx-flutter: the app alias has been replaced with one of [proj, new, gen, init, generate].
  • nx-flutter: Nx workspace v11 is now the minimum version required to use this plugin.

In fact, all executors/schematics have been rewritten into executors/generators using its new @nrwl/devkit API.

1.3.0 (2021-02-01)

Bug Fixes

  • nx-flutter: add missing buildAar builder (44432eb)

Features

  • nx-flutter: add create alias to project generation schematics (0386629), closes #27
  • nx-flutter: auto-adapt prompt & executors based on previous answers (668dd28), closes #26

1.2.1 (2021-01-13)

Bug Fixes

  • nx-flutter: correct generation error on multi word description (1ed2d97), closes #23

1.2.0 (2021-01-12)

Bug Fixes

  • nx-flutter: correct generation error due to platforms option (fc56c5e), closes #22

Features

  • nx-flutter: add special instructions to generate the app (d5f768a)

1.1.1 (2021-01-11)

Bug Fixes

  • nx-flutter: correct generation error due to platforms option (1b22dc6), closes #22

1.1.0 (2021-01-10)

Features

  • nx-flutter: improve typings for template and platforms options (b614dc4)

1.0.0 (2021-01-06)

Bug Fixes

  • nx-flutter: add missing config for semantic-releasing (06fd1bd)

Features

  • nx-flutter: add nx-flutter plugin (e7426e9)