You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[pigeon] Add support for sharing constants across platforms #188642
Pigeon is great for generating type-safe enums and model classes, but when I tried using it, I found I wanted to also put constants in my pigeons to be shared with native code.
Example use case:
For android_hardware_smoke_test (root issue #182123 ), I have a suite of integration tests which I want to run as both flutter driver tests in dart, and as Android Instrumented tests in kotlin. There are a few strings and test timeout constants which I would like to share between the dart and kotlin test scripts.
Proposal
It would be nice if I could define constants in my pigeons/messages.dart file and have them appear in the files generated by pub run pigeon.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
andywolff commentedon Jun 26, 2026
cc @tarrinneal
github-actions commentedon Jul 14, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[pigeon] add support for top level consts (#12032)
[pigeon] add support for top level consts (flutter#12032)