Skip to content

UI Flickering and Line Artifacts in Flutter 3.29.1 on Android 15 #165983

@NesanSelvan

Description

@NesanSelvan

Steps to reproduce

  • Set up a Flutter project using Flutter 3.29.1.
  • Build app in Android 15

Expected results

The app should render the UI without any flickering.

Actual results

  • The app flickers and shows random lines on the screen only when running on Android 15 with Impeller enabled in Flutter 3.29.1.
  • This issue is caused by the ImageFiltered widget.
  • The problem does not occur when Impeller is disabled.

Code sample

Code sample
ClipRect(
                    child: ImageFiltered(
                        imageFilter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
                        child: ShaderMask(
                          shaderCallback: (rect) {
                            return LinearGradient(
                                begin: Alignment.topCenter,
                                end: Alignment.bottomCenter,
                                colors: [
                                  Colors.transparent.withValues(alpha: 1),
                                  Colors.transparent.withValues(alpha: .8),
                                  Colors.transparent.withValues(alpha: .6),
                                  Colors.transparent.withValues(alpha: .3),
                                  Colors.transparent.withValues(alpha: .1),
                                  Colors.transparent,
                                ],
                                stops: const [
                                  0.33,
                                  0.35,
                                  0.38,
                                  0.41,
                                  0.45,
                                  0.50
                                ]).createShader(rect);
                          },
                          blendMode: BlendMode.dstOut,
                          child: NutritionImageWidget(
                            imageUrl: widget.imageUrl ,

                          ),
                        )),
                  ),

Screenshots or Video

Screenshots / Video demonstration

[Upload media

When impeller is enabled:

WhatsApp.Video.2025-03-26.at.18.31.58.mp4

when impellar is disabled

WhatsApp.Video.2025-03-26.at.18.31.24.mp4

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.1, on macOS 15.3.2 24D81 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.4)
[✓] Connected device (6 available)
[✓] Network resources

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solvedIssue is closed as solved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions