Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5fd6db5

Browse files
committed
misplaced early return in backdrop filter
1 parent badb3d7 commit 5fd6db5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/web_ui/lib/src/engine/html/backdrop_filter.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ class PersistedBackdropFilter extends PersistedContainerSurface
132132
} else {
133133
if (backendFilter is ModeHtmlColorFilter) {
134134
_svgFilter = backendFilter.makeSvgFilter(_filterElement);
135+
/// Some blendModes do not make an svgFilter. See [EngineHtmlColorFilter.makeSvgFilter()]
136+
if (_svgFilter == null) {
137+
return;
138+
}
135139
} else if (backendFilter is MatrixHtmlColorFilter) {
136140
_svgFilter = backendFilter.makeSvgFilter(_filterElement);
137141
}
138-
/// Some blendModes do not make an svgFilter. See [EngineHtmlColorFilter.makeSvgFilter()]
139-
if (_svgFilter == null) {
140-
return;
141-
}
142142

143143
// CSS uses pixel radius for blur. Flutter & SVG use sigma parameters. For
144144
// Gaussian blur with standard deviation (normal distribution),

0 commit comments

Comments
 (0)