captureImage property

Image? captureImage
final

Pre-captured background image to use instead of a live BackdropFilterLayer.

When non-null, the glass shader reads from this image directly (sampler slot 0) instead of letting the compositor extract the backdrop. This eliminates the Impeller compositor ordering dependency that caused the opaque-white indicator bug (#99). The image must come from a RenderRepaintBoundary.toImageSync call on a boundary that covers the full background region behind the glass.

Defaults to null — falls through to the BackdropFilterLayer path.

Implementation

final ui.Image? captureImage;