Skip to content

Conversation

@bernaferrari
Copy link
Contributor

@bernaferrari bernaferrari commented Mar 23, 2023

part 4 of #123346

@flutter-dashboard flutter-dashboard bot added a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Mar 23, 2023
@bernaferrari
Copy link
Contributor Author

bernaferrari commented Mar 23, 2023

Ops, need to fix on Engine first.

@bernaferrari bernaferrari changed the title Make SemanticsAction and SemanticsFlag become an enum. SemanticsFlag/SemanticsAction enum migration (part 4) Mar 23, 2023
@bernaferrari bernaferrari changed the title SemanticsFlag/SemanticsAction enum migration (part 4) SemanticsFlag/SemanticsAction enum migration (part 4) Mar 23, 2023
@bernaferrari bernaferrari reopened this Mar 23, 2023
@goderbauer
Copy link
Member

What about the matcher_test.dart in flutter_test that iterates over SemanticsAction.values.keys?

@bernaferrari
Copy link
Contributor Author

bernaferrari commented Mar 24, 2023

That's an excellente question. I completely overlooked it. Thanks!

We could:

  • Have a public map with the values. My original idea was to copy _kActionById idea from AndroidSemanticsAction (the part 3 had it), but there it was private; we could make it public.
  • Add a @protected Iterable<int> keys => _kActionById.keys;, since that's used in tests only.

What do you think?

@bernaferrari
Copy link
Contributor Author

Oh, alternatively we could just do SemanticsAction.values.map((d) => d.value)) right? Would work the same.

@goderbauer
Copy link
Member

SemanticsAction.values.map((d) => d.value)) sounds like the best option.

@bernaferrari bernaferrari force-pushed the SemanticsFlag branch 2 times, most recently from 191e9b1 to 25906f6 Compare April 11, 2023 01:08
@bernaferrari bernaferrari force-pushed the SemanticsFlag branch 5 times, most recently from 19c87ce to b5ea0a1 Compare April 11, 2023 03:23
@bernaferrari bernaferrari marked this pull request as ready for review April 11, 2023 03:26
@bernaferrari bernaferrari changed the title SemanticsFlag/SemanticsAction enum migration (part 4) SemanticsFlag/SemanticsAction cleanup (part 4) Apr 11, 2023
@bernaferrari
Copy link
Contributor Author

Cc @chunhtai

@chunhtai chunhtai self-requested a review April 11, 2023 16:30
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@goderbauer
Copy link
Member

FYI, Google testing is currently failing because the engine-side change has not rolled into google yet.

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

LGTM

@bernaferrari bernaferrari force-pushed the SemanticsFlag branch 2 times, most recently from 3b08912 to 5d9942e Compare April 12, 2023 04:13
@bernaferrari
Copy link
Contributor Author

I'll use my new super-power to auto-submit (I hope it is fine).

@bernaferrari bernaferrari added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 12, 2023
@auto-submit auto-submit bot merged commit 2e4d976 into flutter:master Apr 12, 2023
@bernaferrari bernaferrari deleted the SemanticsFlag branch April 12, 2023 19:07
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 13, 2023
exaby73 pushed a commit to exaby73/flutter_nevercode that referenced this pull request Apr 17, 2023
`SemanticsFlag`/`SemanticsAction` cleanup (part 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: tests "flutter test", flutter_test, or one of our tests autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants