Skip to content

Conversation

@pq
Copy link
Contributor

@pq pq commented Mar 5, 2021

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

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Mar 5, 2021
@google-cla google-cla bot added the cla: yes label Mar 5, 2021
@pq pq requested a review from Piinks March 5, 2021 22:23
Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow! Thanks! I am not sure if the dart fixes can add an import, @bwilkerson is that possible?
Typo fix LGTM

@bwilkerson
Copy link
Contributor

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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add this in a follow-up change, it'll take a bit more refactoring I think. :)

@christopherfujino
Copy link
Contributor

Hey @kf6gpe, I don't think this was cherrypicked to 2.0. Did we get something mixed up in the cp tracking?

christopherfujino pushed a commit to chris-forks/flutter that referenced this pull request Mar 17, 2021
christopherfujino added a commit that referenced this pull request Mar 19, 2021
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants