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
generated_main.dart should using alias import #100421
Since flutter generate generated_main.dart inside .dart_tool/flutter_build for every plugins that implement dartPluginClass, there was possible issue when two or more different plugins has same dartPluginClass.
Proposal
To avoid conflicts in _PluginRegistrant.register method, we can use alias imports e.g
import 'package:foo/foo.dart' as p1;
import 'package:bar/bar.dart' as p2;
...
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
christopherfujino commentedon Aug 2, 2023
@stuartmorgan WDYT about this proposal. it sounds reasonable to me.
stuartmorgan-g commentedon Aug 2, 2023
Yes, that was just an oversight. We should import
as {{pluginName}}in the template.stuartmorgan-g commentedon Aug 2, 2023
@ekasetiawans Have you hit this with actual plugins in the wild? If so, we should prioritize fixing this.
ekasetiawans commentedon Aug 3, 2023
@stuartmorgan Not yet, but this has the potential to become an issue. You can fix it later.
2 remaining items
Prefix generated Dart plugin imports for `registerWith` (#172511)
Prefix generated Dart plugin imports for `registerWith` (flutter#172511)
github-actions commentedon Aug 6, 2025
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.Prefix generated Dart plugin imports for `registerWith` (flutter#172511)
Prefix generated Dart plugin imports for `registerWith` (flutter#172511)
Prefix generated Dart plugin imports for `registerWith` (flutter#172511)
Prefix generated Dart plugin imports for `registerWith` (flutter#172511)
Prefix generated Dart plugin imports for `registerWith` (#172511)