-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator create wrong code about GlobalKey. #389
Comments
Hmm, I am unable to reproduce this in unit tests on 5.0.5... Can you show your |
@srawlins Thanks for reply. I try to generate mockito this Model class (but it is sample code).
Annotation is bellow:
I got bellow generated code:
Additional Information% flutter --version |
OK I can reproduce this. Thanks much! |
Fixes #389 We already track type parameter bounds for classes being mocked. This change allows for classes which need to be Faked to be properly written as well, with import prefixes on imported types. PiperOrigin-RevId: 370927872
Should be fixed in 5.0.7. |
If target class has
GlobalKey
as field, the generator create wrong code. like this:State<StatefulWidget>
should be has prefix_i2
, but it was nothing.version: 5.0.5
The text was updated successfully, but these errors were encountered: