Skip to content

feature(repo): Support analyzer >= 9.0 < 13.0 - #135

Closed
vasilich6107 wants to merge 2 commits into
Iteo:mainfrom
artflutter:feature/widen-analyzer-support-to-12
Closed

vasilich6107 wants to merge 2 commits into
Iteo:mainfrom
artflutter:feature/widen-analyzer-support-to-12

Conversation

@vasilich6107

@vasilich6107 vasilich6107 commented Aug 27, 2026 •

Copy link
Copy Markdown

Closes #134, related to #133.

What

Widens the analyzer constraint in theme_tailor from >=9.0.0 <11.0.0 to >=9.0.0 <13.0.0. One line; no code changes needed. theme_tailor_annotation is untouched (no analyzer dependency).

Why

The current Riverpod codegen toolchain (riverpod_generator 4.0.4 → riverpod_analyzer_utils 1.0.0-dev.10) and dart_style 3.1.8 require analyzer: ^12.0.0, so any workspace using both theme_tailor and Riverpod codegen fails to resolve on stable Flutter 3.44.x / Dart 3.12. Details in #134.

Verification (Dart 3.12.2)

Ran the package checks on both the current floor and the new ceiling — identical results:

Check analyzer 10.2.0 (baseline) analyzer 12.1.0 (widened)
dart pub upgrade resolves resolves (dart_style 3.1.8, source_gen 4.2.4, source_gen_test 1.3.7 — all within existing declared ranges)
dart analyze 87 issues 87 issues — zero delta, zero errors in lib/
dart test 17/17 pass 17/17 pass — the source_gen_test suite runs the generator through build_runner against real analyzer-12 element models

The companion constraints already admit the analyzer-12 pairings (dart_style ^3.1.3 → 3.1.8, source_gen ^4.1.1 → 4.2.4, source_helper ^1.3.9 → 1.3.13), so no other bumps are required.

Includes the version bump to 3.2.0 with a matching CHANGELOG entry, following the format of previous releases.

@Shunt22

Shunt22 commented Aug 27, 2026

Copy link
Copy Markdown

There is already a PR from May. A stale one.
#131

@PawelFranitza-iteo PawelFranitza-iteo mentioned this pull request Aug 28, 2026
@PawelFranitza-iteo

Copy link
Copy Markdown
Collaborator

Hi. New version is available on pubdev. I'm closing this as completed.

https://pub.dev/packages/theme_tailor/changelog

Support primary constructors
Support analyzer 13.0.0
Added support for disabling formatter for generated files, now codegen will add // dart format off when formatting is set to false and subsequent dart format calls won't change generated output. Adding this flag to build.yaml configuration affects whole project and cannot be changed per file.

theme_tailor_annotation: ^4.0.0
theme_tailor: ^4.0.0

@iska9der

Copy link
Copy Markdown

Hi. New version is available on pubdev. I'm closing this as completed.

https://pub.dev/packages/theme_tailor/changelog

Support primary constructors
Support analyzer 13.0.0
Added support for disabling formatter for generated files, now codegen will add // dart format off when formatting is set to false and subsequent dart format calls won't change generated output. Adding this flag to build.yaml configuration affects whole project and cannot be changed per file.

theme_tailor_annotation: ^4.0.0 theme_tailor: ^4.0.0

can you make 3.2.0 version with analyzer 13^ support for those who still on flutter 3.44^ version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Support analyzer ^12.0.0

4 participants