Conversation
There was a problem hiding this comment.
Code Review
This pull request opts out of icon tree shaking for RFW by adding ignore comments for the non_const_argument_for_const_parameter lint. This is necessary because RFW creates IconData instances with dynamic data, which is incompatible with the new @mustBeConst annotations on IconData parameters. The change is correct in principle, but it seems to be missing an ignore for the matchTextDirection parameter, which is also marked as @mustBeConst.
| icon, | ||
| // ignore: non_const_argument_for_const_parameter | ||
| fontFamily: source.v<String>([...key, 'fontFamily']), | ||
| matchTextDirection: source.v<bool>([...key, 'matchTextDirection']) ?? false, |
There was a problem hiding this comment.
It seems you've missed adding an ignore for the matchTextDirection parameter. According to the Flutter PR you linked, matchTextDirection is also annotated with @mustBeConst. Since the value passed here is not a compile-time constant, it will also trigger the non_const_argument_for_const_parameter lint and should be ignored.
| matchTextDirection: source.v<bool>([...key, 'matchTextDirection']) ?? false, | |
| // ignore: non_const_argument_for_const_parameter | |
| matchTextDirection: source.v<bool>([...key, 'matchTextDirection']) ?? false, |
flutter/packages@ee460d6...ecace66 2026-03-11 [email protected] [pigeon] Produce a helpful error for bad method return type (flutter/packages#11204) 2026-03-11 [email protected] [pigeon] Use hasLength and isEmpty in tests for better failure messages (flutter/packages#11205) 2026-03-11 [email protected] [rfw] Opt out of icon tree shaking (flutter/packages#11216) 2026-03-11 [email protected] [pigeon] Tidy imports and "ignore" comments (flutter/packages#11149) 2026-03-11 49699333+dependabot[bot]@users.noreply.github.com [dependabot]: Bump org.jetbrains.kotlin:kotlin-bom from 2.2.21 to 2.3.10 in /packages/pigeon/platform_tests/test_plugin/android (flutter/packages#10984) 2026-03-11 [email protected] [pigeon] Improve casting and nullability-handling in generated code (flutter/packages#11163) 2026-03-10 [email protected] Roll Flutter from 2ec61af to 195ae7b (36 revisions) (flutter/packages#11222) 2026-03-10 [email protected] [vector_graphics] Respect BoxFit parameter with viewbox (flutter/packages#11012) 2026-03-10 [email protected] Add AI contribution guidelines to PR checklist (flutter/packages#11195) 2026-03-10 [email protected] [video_player] Optimize caption retrieval with binary search in VideoPlayerController (flutter/packages#8347) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Roll in flutter/packages#11216. To make flutter/flutter#181345 go green.

We are introducing the
@mustBeConstannotation onIconDataparameters that must be const in order for the icon tree shaker to work:IconData's constructor parameters as@mustBeConstflutter#181344IconDatafinaland@mustBeConstflutter#181345RFW does not support tree-shaking.
This PR adds the lint ignores with an explicit comment that the lint ignore is intentional.