Skip to content

feat: analyzer 12 compatibility - #216

Open
gasciaz wants to merge 1 commit into
artflutter:masterfrom
gasciaz:feat/analyzer-12
Open

feat: analyzer 12 compatibility#216
gasciaz wants to merge 1 commit into
artflutter:masterfrom
gasciaz:feat/analyzer-12

Conversation

@gasciaz

@gasciaz gasciaz commented Aug 15, 2026

Copy link
Copy Markdown

Moves reactive_forms_generator from analyzer 10 to analyzer 12.

The other bumps are forced, not tidying: build 4.0.3 and source_gen 4.1.x cap analyzer below 12, and dart_style pins one analyzer major per release — 3.1.8 is the only one that takes 12, and it needs Dart 3.10, so the SDK floor moves with it.

Analyzer 12 seals ClassBody, so the default case in outputClassBody is now unreachable and flutter analyze --no-fatal-infos exits 1 on it. Removed — that's the only source change.

generator_tests and example need freezed: ^3.2.6-dev.1, a prerelease. 3.2.5 caps analyzer at <11 and 3.2.6-dev.1 is the only published version taking 12, so the workspace can't resolve without it.

Move reactive_forms_generator to analyzer 12:

    analyzer: ^12.0.0       (was ^10.0.0)
    dart_style: ^3.1.8      (was ^3.0.0)
    build: ^4.0.5           (was ^4.0.1)
    source_gen: ^4.2.2      (was ^4.1.2)
    sdk: '>=3.10.0 <4.0.0'  (was '>=3.8.0 <4.0.0')

Analyzer 12 seals ClassBody with exactly BlockClassBody and
EmptyClassBody, so the default case in the outputClassBody switch is now
unreachable. Removed.

generator_tests and example need freezed ^3.2.6-dev.1, currently the
only published version taking analyzer 12.
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.

1 participant