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

Conversation

@QuncCccccc
Copy link
Contributor

@QuncCccccc QuncCccccc commented Jul 24, 2023

This PR is to add support for the expanded/collapsed-state semantics flag to the engine. After adding another PR to Flutter, we will be able to support the expanded/collapsed state in semantics for submenu buttons.

Related to #127617 in flutter

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] and the [C++, Objective-C, Java style guides].
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See [testing the engine] for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the [CLA].
  • All existing and new tests are passing.

@QuncCccccc QuncCccccc force-pushed the add_expanded_collaped_state branch from 183de0d to 6f6069b Compare July 25, 2023 19:44
@QuncCccccc QuncCccccc changed the title [DRAFT] Add Expanded/Collapsed state for SubmenuButton Add Expanded/Collapsed state for SubmenuButton Jul 25, 2023
@QuncCccccc QuncCccccc marked this pull request as ready for review July 26, 2023 16:21
@QuncCccccc QuncCccccc requested review from cbracken and chunhtai and removed request for cbracken and chinmaygarde July 26, 2023 16:21
@QuncCccccc
Copy link
Contributor Author

I will create a PR in flutter/flutter to disable the failed framework tests temporarily.

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

Looks great! lgtm!

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.

Code looks good here, can you also update shell/platform/android/io/flutter/view/AccessibilityBridge.java ?

@QuncCccccc
Copy link
Contributor Author

Code looks good here, can you also update shell/platform/android/io/flutter/view/AccessibilityBridge.java ?

Oh I think there's already an update in this file:) Is that what you want?

@chunhtai
Copy link
Contributor

Oh I think there's already an update in this file:) Is that what you want?

yes, you are right! for some reason I missed it.

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


/// The semantics node has the quality of either being "expanded" or "collapsed".
///
/// For example, a submenu button widget has expanded state.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// For example, a submenu button widget has expanded state.
/// For example, a [SubmenuButton] widget has expanded state.

Copy link
Contributor

Choose a reason for hiding this comment

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

not entirely sure if the doc string can pick this up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just checked other api doc and looks like using square bracket can link to the widget doc. Thanks for the suggestion:)

QuncCccccc added a commit to flutter/flutter that referenced this pull request Jul 27, 2023
…on (#131359)

This PR is to skip some unit tests in order to merging an [engine
change](flutter/engine#43983).
@QuncCccccc QuncCccccc force-pushed the add_expanded_collaped_state branch from 2b3b0dc to 05d9a01 Compare July 27, 2023 19:46
@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 27, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 27, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Jul 27, 2023

auto label is removed for flutter/engine, pr: 43983, due to - The status or check suite Linux linux_clang_tidy has failed. Please fix the issues identified (or deflake) before re-applying this label.

@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2023
@auto-submit auto-submit bot merged commit b0d97ba into flutter:main Jul 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 28, 2023
LouiseHsu pushed a commit to LouiseHsu/flutter that referenced this pull request Jul 31, 2023
…on (flutter#131359)

This PR is to skip some unit tests in order to merging an [engine
change](flutter/engine#43983).
vashworth pushed a commit to vashworth/flutter that referenced this pull request Aug 2, 2023
…on (flutter#131359)

This PR is to skip some unit tests in order to merging an [engine
change](flutter/engine#43983).
gaaclarke pushed a commit to gaaclarke/engine that referenced this pull request Aug 30, 2023
This PR is to add support for the expanded/collapsed-state semantics flag to the engine. After adding another PR to Flutter, we will be able to support the expanded/collapsed state in semantics for submenu buttons.

Related to [#127617](flutter/flutter#127617) in flutter
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

affects: desktop autosubmit Merge PR when tree becomes green via auto submit App platform-android platform-web Code specifically for the web engine platform-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants