Skip to content

fix: Notify the component when ColorEffect resets its color filter - #4044

Draft
spydon wants to merge 2 commits into
fix/text-component-opacity-shadowsfrom
fix/color-effect-reset-notifies
Draft

fix: Notify the component when ColorEffect resets its color filter#4044
spydon wants to merge 2 commits into
fix/text-component-opacity-shadowsfrom
fix/color-effect-reset-notifies

Conversation

@spydon

@spydon spydon commented Sep 8, 2026

Copy link
Copy Markdown
Member

Description

Stacked on #4043.

ColorEffect.reset() restored the original color filter directly on the paint without calling
HasPaint.onChanged(). Components that derive their rendering from the paint, such as
TextComponent, therefore kept the last tint after the effect was reset, until something else
changed the paint.

reset() now calls onChanged() after restoring the color filter, in line with tint, setColor
and the opacity setter in HasPaint.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • [-] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • [-] I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Related to #4013 and #4043.

@spydon
spydon force-pushed the fix/color-effect-reset-notifies branch from abc6838 to b79059a Compare September 8, 2026 19:47
@spydon
spydon force-pushed the fix/text-component-opacity-shadows branch from 5334a1f to 8ae253e Compare September 8, 2026 19:47
@spydon
spydon force-pushed the fix/text-component-opacity-shadows branch from 8ae253e to 8d51db4 Compare September 8, 2026 20:10
@spydon
spydon force-pushed the fix/color-effect-reset-notifies branch from b79059a to 57eb69c Compare September 8, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant