Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Makes IOS dispatch showOnCcreen action for header semantics nodes#19788

Merged
chunhtai merged 3 commits intoflutter:masterfrom
chunhtai:issues/61360
Jul 16, 2020
Merged

Makes IOS dispatch showOnCcreen action for header semantics nodes#19788
chunhtai merged 3 commits intoflutter:masterfrom
chunhtai:issues/61360

Conversation

@chunhtai
Copy link
Copy Markdown
Contributor

@chunhtai chunhtai commented Jul 15, 2020

Description

IOS relies on show on screen action to scroll the app during accessibility focus traversal. This pr makes sure the header always get scrolled if it is focused.

Related Issues

Fixes flutter/flutter#61360

Tests

I added the following tests:

see files

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the contributor guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the C++, Objective-C, Java style guides for the engine.
  • I read the tree hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation.
  • All existing and new tests are passing.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read handling breaking changes.

Copy link
Copy Markdown
Member

@gaaclarke gaaclarke left a comment

Choose a reason for hiding this comment

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

Code looks good to me. One niggle I have is that SemanticsFlags doesn't have any docstrings so it's hard for me to read this code and know that the logic is correct. Is the documentation somewhere in framework? It would be nice to have it also in flutter/lib/ui/semantics.dart, or have a link to the documentation in the framework.

@chunhtai
Copy link
Copy Markdown
Contributor Author

I do see doc string in

class SemanticsFlag {

Is there some more specific you are looking for?

@gaaclarke
Copy link
Copy Markdown
Member

@chunhtai Yea, nowhere is "kIsHeader" defined. The enum is described in general but the fields aren't described.

@chunhtai
Copy link
Copy Markdown
Contributor Author

It is defined underneath

/// Whether a semantic node is a header that divides content into sections.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes platform-ios waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SliverAppbar does not expand when using ios accessibility focus traversal

4 participants