Skip to content

Conversation

@QuncCccccc
Copy link
Contributor

This PR is to add a parameter contrastLevel to ColorScheme.fromSeed so that we can construct high contrast ColorScheme.

Screen.Recording.2024-06-04.at.5.57.15.PM.mov

Related to #149683

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 this PR is [test-exempt].
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos labels Jun 5, 2024
Copy link
Member

@guidezpl guidezpl Jun 5, 2024

Choose a reason for hiding this comment

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

suggest mentioning that medium and high contrast from the M3 guidelines correspond to 0.5 and 1.0 respectively. otherwise LGTM!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for helping review this! Will update!

@QuncCccccc QuncCccccc force-pushed the add_contrast_level branch from a09622f to 57ab7fd Compare June 5, 2024 18:51
@QuncCccccc QuncCccccc requested a review from chunhtai June 5, 2024 19:00
@QuncCccccc
Copy link
Contributor Author

QuncCccccc commented Jun 5, 2024

Once this is landed, will add the high-contrast ColorScheme to the a11y-assessments app:) @chunhtai

@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 5, 2024
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, is there another pr to update the a11y app as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

additional line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated:) Thanks for the review!

@QuncCccccc QuncCccccc removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 5, 2024
@QuncCccccc
Copy link
Contributor Author

LGTM, is there another pr to update the a11y app as well?

Yes! Will create another PR to add the high-contrast color scheme to the a11y assessment app.

@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 5, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 5, 2024
@auto-submit
Copy link
Contributor

auto-submit bot commented Jun 5, 2024

auto label is removed for flutter/flutter/149705, due to - The status or check suite Windows framework_tests_widgets has failed. Please fix the issues identified (or deflake) before re-applying this label.

  • The status or check suite Mac framework_tests_impeller has failed. Please fix the issues identified (or deflake) before re-applying this label.

@QuncCccccc QuncCccccc force-pushed the add_contrast_level branch from d197ec0 to bfb4caa Compare June 5, 2024 21:11
@QuncCccccc QuncCccccc added autosubmit Merge PR when tree becomes green via auto submit App labels Jun 5, 2024
@auto-submit auto-submit bot merged commit 3ed3f31 into flutter:master Jun 5, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 6, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Jun 6, 2024
flutter/flutter@27e0656...4608a89

2024-06-06 [email protected] Fix InputDecorator suffixIcon color when in error and hovered (flutter/flutter#149643)
2024-06-06 [email protected] Roll Flutter Engine from 32c3b9b7cbe1 to 92d0cd9370f7 (1 revision) (flutter/flutter#149789)
2024-06-06 [email protected] Roll Flutter Engine from 0edca2e9d3d2 to 32c3b9b7cbe1 (2 revisions) (flutter/flutter#149786)
2024-06-06 [email protected] Roll Flutter Engine from f51e0ad3abbe to 0edca2e9d3d2 (8 revisions) (flutter/flutter#149785)
2024-06-06 [email protected] Roll Flutter Engine from f37733035060 to f51e0ad3abbe (3 revisions) (flutter/flutter#149778)
2024-06-05 [email protected] Remove abi key from local golden file testing (flutter/flutter#149696)
2024-06-05 [email protected] Fixes Router transaction to respect operation order (flutter/flutter#149763)
2024-06-05 [email protected] Send q once (flutter/flutter#149767)
2024-06-05 [email protected] Marks Mac_ios rrect_blur_perf_ios__timeline_summary to be unflaky (flutter/flutter#149729)
2024-06-05 [email protected] Add `contrastLevel` parameter to `ColorScheme.fromSeed` (flutter/flutter#149705)
2024-06-05 [email protected] Roll Flutter Engine from 11a32d43e3f6 to f37733035060 (11 revisions) (flutter/flutter#149770)
2024-06-05 [email protected] Remove unused code from an older test artifact. (flutter/flutter#149746)
2024-06-05 [email protected] Create CarouselView widget - Part 1 (flutter/flutter#148094)
2024-06-05 [email protected] [flutter_tools] Remove additional listener on VM service that simply logged incoming messages (flutter/flutter#149756)
2024-06-05 [email protected] Fix signature for TokenTemplate.updateFile (flutter/flutter#149673)
2024-06-05 [email protected] Remove temporary LayoutBuilder migration flag, defer `markNeedsLayout` (flutter/flutter#149637)
2024-06-05 [email protected] Revert "make output of flutter run web tests verbose (#149694)" (flutter/flutter#149766)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos 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.

3 participants