FrostBlurLayer class

A layer widget that applies a frosted glass blur and distortion shader to its child. Similar to FractalBlurLayer, but based on a noise-driven frosty diffusion pattern. Use shape and borderRadius to clip the output to rounded rectangles or circles.

Inheritance

Constructors

FrostBlurLayer({Key? key, required Widget child, double? width, double? height, BoxShape shape = BoxShape.rectangle, double noiseScale = 6.0, double distortion = 0.045, double directionalMix = 0.25, double iterations = 12, double blend = 1.0, bool enabled = true, bool useBackdrop = false, BorderRadius? borderRadius})
const

Properties

blend double
Mix between original content (0) and fully frosted result (1).
final
borderRadius BorderRadius?
Optional radius used to clip the shader output when shape is rectangle.
final
child Widget
Content captured by the shader in non-backdrop mode.
final
directionalMix double
Mix between vertical streaking (0) and isotropic distortion (1).
final
distortion double
Overall distortion strength (typical range 0.0–0.08).
final
enabled bool
When false, the shader is bypassed and child is returned directly.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Optional explicit height of the render area.
final
iterations double
Number of iterative distortion steps (1–32). Higher values = smoother.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
noiseScale double
Frequency of the noise field that defines the frost pattern.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape BoxShape
Clip shape for the shader output.
final
useBackdrop bool
When true, renders using BackdropFilter so the shader samples from the scene behind this layer instead of the provided child.
final
width double?
Optional explicit width of the render area.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited