We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7acb307 commit 4073b81Copy full SHA for 4073b81
lib/src/effects/clip_effect.dart
@@ -94,13 +94,13 @@ class ClipEffect extends Effect {
94
95
@override
96
Widget apply(BuildContext context, Widget child) {
97
- // if (clip == Clip.none) return child;
98
- // if (borderRadius == BorderRadius.zero) {
99
- // return ClipRect(
100
- // clipBehavior: clip,
101
- // child: child,
102
- // );
103
- // }
+ if (clip == Clip.none) return child;
+ if (borderRadius == BorderRadius.zero) {
+ return ClipRect(
+ clipBehavior: clip,
+ child: child,
+ );
+ }
104
return ClipRRect(
105
clipBehavior: clip,
106
borderRadius: borderRadius,
0 commit comments