Skip to content

The new blur is causing text (and images) to flicker #140193

@mark8044

Description

@mark8044

Steps to reproduce

@bdero
@gaaclarke

This bug is being re-posted after request(flutter/engine#48472 (comment), flutter/engine#48472 (comment))

Flutter 3.18.0-11.0.pre.55 • channel master • https://github.com/flutter/flutter.git
Framework • revision 0b6da5b450 (3 hours ago) • 2023-12-14 18:16:50 -0500
Engine • revision 0b0fab8215
Tools • Dart 3.3.0 (build 3.3.0-220.0.dev) • DevTools 2.30.0

Problem:

Text that is being blurred now flickers during a scroll. If the text is held still under the blur there is no flicker, however when scrolling, then a flickering of the text occurs. The problem seems to get worse when a finger is lifted and the scroll slows down with friction scrolling.

In my case, this is happening when using a scrollable Listview that contains black text on a white background. Overlaying the listview is a blurred Container created using a BackdropFilter.

The listview and the container live together in a Stack widget

Here's a video showing the problem from the simulator. The problem is a bit more apparent on a real device, but for sure its there on the simulator

EDIT/UPDATE: Images also flicker

Screen.Recording.2023-12-14.at.5.51.56.PM.mov

Problem source:

The problem starting occurring with the launch of the new blur flutter/engine#48472 (or possibly flutter/engine#49038). Both those updates are in commit 0b6da5b45088bb1d8a9b1d1e89f3b7d1437390c4 which is where the problem has started. It looks like that commit will be reverted soon, so lets enjoy the problem while it lasts

Expected results

No flickering of text

Actual results

Flicker of text

Code sample

Code sample
My code is quite large and will be difficult to put here, but conceptually it is a container with a backdrop filter sitting in a stack on top of a lsitview 

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: renderingUI glitches reported at the engine/skia or impeller rendering levele: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions