Skip to content

Conversation

@QuncCccccc
Copy link
Contributor

@QuncCccccc QuncCccccc commented Feb 27, 2024

Reverts #144262

The Golden diffs have been approved before, it should be safe to land this change now:)

@github-actions github-actions bot added a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) f: scrolling Viewports, list views, slivers, etc. d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos f: routes Navigator, Router, and related APIs. c: tech-debt Technical debt, code quality, testing, etc. labels Feb 27, 2024
@QuncCccccc QuncCccccc changed the title Reland - Introduce tone-based surfaces and accent color add-ons - Part 2 Reland "Reland - Introduce tone-based surfaces and accent color add-ons - Part 2" Feb 27, 2024
@QuncCccccc QuncCccccc requested a review from Piinks February 27, 2024 23:41
@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Changes reported for pull request #144273 at sha edaacd7

@flutter-dashboard flutter-dashboard bot added the will affect goldens Changes to golden files label Feb 27, 2024
@Piinks
Copy link
Contributor

Piinks commented Feb 28, 2024

Can you push another commit without a force push so I can double check the goldens?

@QuncCccccc
Copy link
Contributor Author

Can you push another commit without a force push so I can double check the goldens?

Yes! Just pushed some empty commits. Since there was a conflict, so after I solved it, pushed another one.

@Piinks
Copy link
Contributor

Piinks commented Feb 28, 2024

Ah thanks! Looks like Gold is good here, is the Google testing failure expected?

@QuncCccccc
Copy link
Contributor Author

QuncCccccc commented Feb 28, 2024

Ah thanks! Looks like Gold is good here, is the Google testing failure expected?

Yes! Google testing failures are expected. I sent cl/609608958 for teams to review and have got all LGTMs:)

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.

LGTM!

@Piinks
Copy link
Contributor

Piinks commented Feb 28, 2024

Oh weird, the github UI glitched when I submitted.

@QuncCccccc QuncCccccc merged commit 0d8eafb into master Feb 28, 2024
@QuncCccccc QuncCccccc deleted the revert-144262-revert_871d59221c67c148264ca38586bab08a36db1092 branch February 28, 2024 21:55
@QuncCccccc
Copy link
Contributor Author

LGTM!

Thanks!

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 29, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Feb 29, 2024
flutter/flutter@d00bfe8...e92bca3

2024-02-29 [email protected] [flutter_tools] Update external link in Android manifest template (flutter/flutter#144302)
2024-02-29 [email protected] Roll Flutter Engine from 232217f39c3c to d068d980f952 (1 revision) (flutter/flutter#144369)
2024-02-29 [email protected] Roll Flutter Engine from 9e1876141be8 to 232217f39c3c (1 revision) (flutter/flutter#144366)
2024-02-29 [email protected] Roll Flutter Engine from 61510db94a1c to 9e1876141be8 (1 revision) (flutter/flutter#144362)
2024-02-29 [email protected] Roll Flutter Engine from 10331db8f748 to 61510db94a1c (5 revisions) (flutter/flutter#144355)
2024-02-29 [email protected] Docs on the interaction between Shortcuts and text input (flutter/flutter#144328)
2024-02-29 [email protected] Use robolectric/AndroidJUnit4 for integration test tests (flutter/flutter#144348)
2024-02-29 [email protected] Reland "Cache FocusNode.enclosingScope, clean up descendantsAreFocusable (#144207)" (flutter/flutter#144330)
2024-02-29 [email protected] Roll Flutter Engine from 455c814fe5de to 10331db8f748 (7 revisions) (flutter/flutter#144345)
2024-02-29 [email protected] ReportTiming callback should record the sendFrameToEngine when it was scheduled (flutter/flutter#144212)
2024-02-29 [email protected] Disable flaky golden file test (flutter/flutter#144351)
2024-02-28 [email protected] Mention SelectionArea in SelectableText docs (flutter/flutter#143784)
2024-02-28 49699333+dependabot[bot]@users.noreply.github.com Bump peter-evans/create-pull-request from 6.0.0 to 6.0.1 (flutter/flutter#144344)
2024-02-28 [email protected] Reland "Reland - Introduce tone-based surfaces and accent color add-ons - Part 2" (flutter/flutter#144273)
2024-02-28 [email protected] Remove irrelevant comment in TextPainter (flutter/flutter#144308)

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
@Hixie
Copy link
Contributor

Hixie commented Mar 5, 2024

This caused an application I'm working on to change color, from:

bright purple

...to:

desaturated purple

...and I can't figure out what value to pass to ColorScheme.fromSeed to get the old colors.

Was that intentional?

@QuncCccccc QuncCccccc mentioned this pull request Mar 6, 2024
8 tasks
auto-submit bot pushed a commit to flutter/cocoon that referenced this pull request Mar 6, 2024
The new [`ColorScheme` change](flutter/flutter#144273) causes some golden failures in Cocoon. This PR is to update them.
@QuncCccccc QuncCccccc mentioned this pull request Mar 6, 2024
8 tasks
LouiseHsu pushed a commit to LouiseHsu/packages that referenced this pull request Mar 7, 2024
flutter/flutter@d00bfe8...e92bca3

2024-02-29 [email protected] [flutter_tools] Update external link in Android manifest template (flutter/flutter#144302)
2024-02-29 [email protected] Roll Flutter Engine from 232217f39c3c to d068d980f952 (1 revision) (flutter/flutter#144369)
2024-02-29 [email protected] Roll Flutter Engine from 9e1876141be8 to 232217f39c3c (1 revision) (flutter/flutter#144366)
2024-02-29 [email protected] Roll Flutter Engine from 61510db94a1c to 9e1876141be8 (1 revision) (flutter/flutter#144362)
2024-02-29 [email protected] Roll Flutter Engine from 10331db8f748 to 61510db94a1c (5 revisions) (flutter/flutter#144355)
2024-02-29 [email protected] Docs on the interaction between Shortcuts and text input (flutter/flutter#144328)
2024-02-29 [email protected] Use robolectric/AndroidJUnit4 for integration test tests (flutter/flutter#144348)
2024-02-29 [email protected] Reland "Cache FocusNode.enclosingScope, clean up descendantsAreFocusable (#144207)" (flutter/flutter#144330)
2024-02-29 [email protected] Roll Flutter Engine from 455c814fe5de to 10331db8f748 (7 revisions) (flutter/flutter#144345)
2024-02-29 [email protected] ReportTiming callback should record the sendFrameToEngine when it was scheduled (flutter/flutter#144212)
2024-02-29 [email protected] Disable flaky golden file test (flutter/flutter#144351)
2024-02-28 [email protected] Mention SelectionArea in SelectableText docs (flutter/flutter#143784)
2024-02-28 49699333+dependabot[bot]@users.noreply.github.com Bump peter-evans/create-pull-request from 6.0.0 to 6.0.1 (flutter/flutter#144344)
2024-02-28 [email protected] Reland "Reland - Introduce tone-based surfaces and accent color add-ons - Part 2" (flutter/flutter#144273)
2024-02-28 [email protected] Remove irrelevant comment in TextPainter (flutter/flutter#144308)

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
auto-submit bot pushed a commit to flutter/tests that referenced this pull request Mar 7, 2024
sealesj pushed a commit to sealesj/cocoon that referenced this pull request Mar 7, 2024
The new [`ColorScheme` change](flutter/flutter#144273) causes some golden failures in Cocoon. This PR is to update them.
parlough added a commit to flutter/website that referenced this pull request Mar 27, 2024
This PR is to add a breaking change page for the recent ColorScheme
change(flutter/flutter#142654,
flutter/flutter#144273 and
flutter/flutter#144805).

---------

Co-authored-by: Parker Lougheed <[email protected]>
Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
atsansone pushed a commit to atsansone/website that referenced this pull request Apr 5, 2024
This PR is to add a breaking change page for the recent ColorScheme
change(flutter/flutter#142654,
flutter/flutter#144273 and
flutter/flutter#144805).

---------

Co-authored-by: Parker Lougheed <[email protected]>
Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 14, 2024
@himotou
Copy link

himotou commented May 22, 2024

I have some questions about the ColorScheme upgrade.
In the latest version, I saw that background and onBackground were removed. In my project, I use it to define the background color of the page or card, without using surface and onSurface. Because onSurface is used in the system's built-in long-press popup option.
There are some other similar situations, but not many. For such situations, I generally avoid using this attribute.
In the latest version, background and onBackground have been removed. For me, I can only use surface and onSurface, but onSurface is occupied by the system. Do you have any good suggestions for this problem?

@QuncCccccc
Copy link
Contributor Author

QuncCccccc commented May 22, 2024

I have some questions about the ColorScheme upgrade. In the latest version, I saw that background and onBackground were removed. In my project, I use it to define the background color of the page or card, without using surface and onSurface. Because onSurface is used in the system's built-in long-press popup option. There are some other similar situations, but not many. For such situations, I generally avoid using this attribute. In the latest version, background and onBackground have been removed. For me, I can only use surface and onSurface, but onSurface is occupied by the system. Do you have any good suggestions for this problem?

Hi! We can add color roles by using ThemeExtension! Here's an example showing how we can add more colors in theme:)

Update:
Sorry, I just noticed I didn't attach the example link... Here it is! https://api.flutter.dev/flutter/material/ThemeExtension-class.html#material.ThemeExtension.1

parlough added a commit to flutter/samples that referenced this pull request May 22, 2024
This PR is to fix #2289 and add newly added `ColorScheme` roles since
flutter/flutter#144273

---------

Co-authored-by: Parker Lougheed <[email protected]>
@himotou
Copy link

himotou commented May 23, 2024

I have some questions about the ColorScheme upgrade. In the latest version, I saw that background and onBackground were removed. In my project, I use it to define the background color of the page or card, without using surface and onSurface. Because onSurface is used in the system's built-in long-press popup option. There are some other similar situations, but not many. For such situations, I generally avoid using this attribute. In the latest version, background and onBackground have been removed. For me, I can only use surface and onSurface, but onSurface is occupied by the system. Do you have any good suggestions for this problem?

Hi! We can add color roles by using ThemeExtension! Here's an example showing how we can add more colors in theme:)

Great, thank you very much!

@QuncCccccc QuncCccccc mentioned this pull request May 31, 2024
2 tasks
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 a: text input Entering text in a text field or keyboard related problems c: tech-debt Technical debt, code quality, testing, etc. d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos f: material design flutter/packages/flutter/material repository. f: routes Navigator, Router, and related APIs. f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels. will affect goldens Changes to golden files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants