Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Port of JetBrains/intellij-plugins#942 to the new repository and project structure.
Original PR description:
Increase the minimum supported Dart SDK to 2.12, which is the release which added support for null safety and finalized the consolidation on the combined
dartCLI tool. This simplifies plugin development as a lot of tooling changed before the 2.12 release, requiring a lot of conditional behavior that is relatively hard to maintain and not well tested as very few developers run those old SDK versions.Justification and background
Dart 2.12 was released on 2021-03-04, so over 4 years ago now. With the release of Dart 3 (May 2023), the Dart team stopped supporting language versions before 2.12 and highlighted most packages support null safety.
Beyond this, the Flutter IntelliJ plugin implemented a support policy at the beginning of 2025 only supporting SDKs from the previous two years. As of the most recent release, they only support Flutter 3.13 or later, which comes with Dart 3.1.
In this PR I set 2.12 as the minimum instead of 3.0 or 3.1 for two reasons:
Included changes
pub buildcommand, in favor of webdev.dart create.