File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ class EdgeBlur {
12
12
required this .sigma,
13
13
required this .controlPoints,
14
14
this .tintColor,
15
+ this .tileMode =
16
+ TileMode .clamp, // Add the tileMode parameter with a default value
15
17
});
16
18
17
19
/// The edge on which the blur will be applied.
@@ -28,4 +30,7 @@ class EdgeBlur {
28
30
29
31
/// The tint color to be applied to the blur effect.
30
32
final Color ? tintColor;
33
+
34
+ /// The tile mode to be used in the blur effect.
35
+ final TileMode tileMode;
31
36
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class SoftEdgeBlur extends StatelessWidget {
74
74
..imageFilter = ui.ImageFilter .blur (
75
75
sigmaX: edge.sigma,
76
76
sigmaY: edge.sigma,
77
- tileMode: TileMode .clamp ,
77
+ tileMode: edge.tileMode ,
78
78
);
79
79
80
80
canvas.drawImage (image, Offset .zero, blurredPaint);
You can’t perform that action at this time.
0 commit comments