fix Autovalidate enum references in fix data#77419
Conversation
Piinks
left a comment
There was a problem hiding this comment.
Oh wow! Thanks! I am not sure if the dart fixes can add an import, @bwilkerson is that possible?
Typo fix LGTM
|
Yes, they can. The replacement text can use a variable and the variable can be specified as type 'import'. |
| expression: 'AutovalidateMode.disabled' | ||
| requiredIf: "autovalidate == 'false'" | ||
| - kind: 'removeParameter' | ||
| name: 'autovalidate' |
There was a problem hiding this comment.
Below here, under variables you should be able to add the import if I understand it right
Like:
kind: import
uris: [ 'package:flutter/material.dart' ]
name: 'Widget'
I haven't found an example of this yet, but I am looking into it now. Thanks @bwilkerson!
There was a problem hiding this comment.
I can add this in a follow-up change, it'll take a bit more refactoring I think. :)
|
Hey @kf6gpe, I don't think this was cherrypicked to 2.0. Did we get something mixed up in the cp tracking? |
* Avoid iOS local networking dialog in integration tests (#75163) * ios_platform_view tests pass when device rotated (#75665) * Consolidate ascii spinner stop in devtools activation (#75679) * Fix problem causing tasks to timeout. (#76028) This is because the command was actually collecting logs continuously from the device. Additionally idevicesyslog does not have a reboot option. Bug: #76027 * fix Autovalidate enum references in fix data (#77419) * roll engine cherrypicks Co-authored-by: Jenn Magder <[email protected]> Co-authored-by: godofredoc <[email protected]> Co-authored-by: Phil Quitslund <[email protected]>
This fixes a typo in the fix data file which leads to generating bogus (non-existent) enum references.
It's also worth noting that these fixes don't auto add the required import. (There's a way to do that with variables but I don't quite know the magic...)
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.