Consolidate Flutter/Dart version numbers into shared constants#507
Open
Consolidate Flutter/Dart version numbers into shared constants#507
Conversation
Add a remark plugin that replaces %flutter_version% and %dart_version% placeholders in MDX files at build time. Version numbers are now defined once in src/consts.ts instead of being hardcoded across 6 files.
eseidel
reviewed
Mar 5, 2026
| **Dart 3.11.1**. Key requirements now include Java 17 minimum for Android, iOS | ||
| 13+ minimum, and Android 16KB page size support for Google Play compliance. | ||
| Impeller is fully default across iOS and Android API 29+. | ||
| **Flutter %flutter_version%** (March 2026) is the current stable release, |
Contributor
There was a problem hiding this comment.
I'm not sure you want to replace this one?
Contributor
Author
There was a problem hiding this comment.
It's talking about the latest release, so I think we do. TUrns out there's another place where we were reference the latest release month as well, so went ahead and added that as a var too.
eseidel
reviewed
Mar 5, 2026
|
|
||
| ``` | ||
| [✓] Flutter (Channel stable, 3.41.4, on macOS 26.2 25C56 darwin-arm64, locale | ||
| [✓] Flutter (Channel stable, %flutter_version%, on macOS 26.2 25C56 darwin-arm64, locale |
Contributor
There was a problem hiding this comment.
I'm not sure if you want to replace this one?
Also replaces the stale partial versions (3.41, 3.11) in how-to-install-flutter.mdx with the shared placeholders.
Example outputs contain commit hashes and dates that aren't updated, so the version numbers in those blocks should stay hardcoded too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
src/consts.tsas a single source of truth for Flutter and Dart version numberssrc/plugins/replace-versions.ts) that replaces%flutter_version%and%dart_version%placeholders in MDX files at build time, including inside fenced code blocksFuture version bumps now only require editing
src/consts.ts:Test plan
astro buildsucceeds