Skip to content

[Impeller] Bounded BackdropFilter blur does nothing inside a translated save layer #196925

Description

@petarhristov94

Steps to reproduce

  1. Run the app below on an iOS simulator (Impeller, the default).
  2. Each case paints bold text, with a translucent strip over its top half that has a BackdropFilter underneath it. The strip should blur the text under it.

Expected results

All four strips blur the text under them.

Actual results

The bounded blur does nothing when it sits inside a save layer that isn't at the origin:

Case Wrapper Filter Result
A Clip.antiAlias ImageFilterConfig.blur(bounded: true) blurs
B Clip.antiAliasWithSaveLayer bounded crisp, no blur
C Clip.antiAliasWithSaveLayer unbounded blurs
D Opacity(0.99) › Clip.antiAlias bounded crisp, no blur

This looks like the save-layer variant of #184447. #191615 ("Fixes translated bounded blurs") fixed the case without a save layer (A). Our real-world case is a modal sheet and a dialog whose rounded surface uses Clip.antiAliasWithSaveLayer, with a frosted app bar at the top that uses a bounded blur so it doesn't pick up the barrier.

Code sample

Code sample
// Impeller: a bounded BackdropFilter inside a translated save layer doesn't blur.
//
// Each case: crisp text, with a translucent strip over its top half that should
// blur what is under it. Blurred text under the strip = works; crisp = broken.
import 'package:flutter/widgets.dart';

const _bounded = ImageFilterConfig.blur(sigmaX: 5, sigmaY: 5, bounded: true);
const _unbounded = ImageFilterConfig.blur(sigmaX: 5, sigmaY: 5);

void main() => runApp(
  const Directionality(
    textDirection: TextDirection.ltr,
    child: ColoredBox(
      color: Color(0xFFFFFFFF),
      child: Padding(
        padding: EdgeInsets.fromLTRB(12, 70, 12, 0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.stretch,
          children: [
            _Case('A · Clip.antiAlias, bounded', Clip.antiAlias, _bounded),
            _Case('B · Clip.antiAliasWithSaveLayer, bounded', Clip.antiAliasWithSaveLayer, _bounded),
            _Case('C · Clip.antiAliasWithSaveLayer, unbounded', Clip.antiAliasWithSaveLayer, _unbounded),
            Opacity(
              opacity: 0.99,
              child: _Case('D · Opacity(0.99) › Clip.antiAlias, bounded', Clip.antiAlias, _bounded),
            ),
          ],
        ),
      ),
    ),
  ),
);

class _Case extends StatelessWidget {
  final String label;
  final Clip clip;
  final ImageFilterConfig filter;

  const _Case(this.label, this.clip, this.filter);

  @override
  Widget build(BuildContext context) => Container(
    margin: const EdgeInsets.only(top: 16),
    clipBehavior: clip,
    decoration: BoxDecoration(color: const Color(0xFFFFFFFF), borderRadius: BorderRadius.circular(24)),
    padding: const EdgeInsets.all(10),
    child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Text(label, style: const TextStyle(fontSize: 13, color: Color(0xFF555555))),
        const SizedBox(height: 4),
        SizedBox(
          height: 96,
          child: Stack(
            fit: StackFit.expand,
            children: [
              const ColoredBox(
                color: Color(0xFFF2F2F2),
                child: Center(
                  child: Text(
                    'BLUR ME 0123',
                    style: TextStyle(fontSize: 34, fontWeight: FontWeight.w800, color: Color(0xFF1040C0)),
                  ),
                ),
              ),
              Positioned(
                top: 0,
                left: 0,
                right: 0,
                height: 48,
                child: ClipRect(
                  child: BackdropFilter(
                    filterConfig: filter,
                    child: const ColoredBox(color: Color(0x80FFFFFF)),
                  ),
                ),
              ),
            ],
          ),
        ),
      ],
    ),
  );
}

Screenshots or Video

Screenshots / Video demonstration issue_screenshot

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
Flutter 3.50.0 • channel stable • revision ab2912035e (2026-11-09)
Engine • revision 371f77202a
macOS, iOS 27.2 simulator (iPhone 17 Pro), Impeller (default)

Activity

  1. added
    in triage
    on Nov 19, 2026
  2. saurabh-mirajkar commented on Nov 19, 2026

    @saurabh-mirajkar
    Contributor

    @petarhristov94 Thanks for the detailed report. I was able to reproduce the issue on Flutter 3.50.0 stable using both iOS 26.2 and iOS 27.2 simulators. Routing to team-engine for further investigation.

    Related: #184447, #191615

  3. added
    platform-ios
    engine
    has reproducible steps
    e: impeller
    team-engine
    found in release: 3.50
    and removed
    in triage
    on Nov 19, 2026
  4. added
    P1
    on Nov 23, 2026
  5. added
    triaged-engine
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1e: impellerenginefound in release: 3.50has reproducible stepsplatform-iosteam-enginetriaged-engine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions