File tree 1 file changed +1
-10
lines changed
packages/flutter/lib/src/rendering
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -1033,20 +1033,11 @@ class RenderBackdropFilter extends RenderProxyBox {
1033
1033
@override
1034
1034
bool get alwaysNeedsCompositing => child != null ;
1035
1035
1036
- // TODO(liyuqian): remove this after updating the engine BackdropFilterLayer.
1037
- void _addTrasnparentPaint (PaintingContext context, Offset offset) {
1038
- // Draw a fully transparent paint to make sure that the cull rect won't be
1039
- // shrunk by Skia.
1040
- final Paint transparentPaint = Paint ()..color = const Color (0x00000000 );
1041
- context.canvas.drawPaint (transparentPaint);
1042
- super .paint (context, offset);
1043
- }
1044
-
1045
1036
@override
1046
1037
void paint (PaintingContext context, Offset offset) {
1047
1038
if (child != null ) {
1048
1039
assert (needsCompositing);
1049
- context.pushLayer (BackdropFilterLayer (filter: _filter), _addTrasnparentPaint , offset);
1040
+ context.pushLayer (BackdropFilterLayer (filter: _filter), super .paint , offset);
1050
1041
}
1051
1042
}
1052
1043
}
You can’t perform that action at this time.
0 commit comments