Skip to content

Commit

Permalink
Merge pull request #13 from Rahiche/ft-pass-tilemode
Browse files Browse the repository at this point in the history
Add TileMode
  • Loading branch information
Rahiche authored Sep 28, 2024
2 parents 31e989a + 3c9ddbd commit 1655779
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/src/edge_blur.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class EdgeBlur {
required this.sigma,
required this.controlPoints,
this.tintColor,
this.tileMode =
TileMode.clamp, // Add the tileMode parameter with a default value
});

/// The edge on which the blur will be applied.
Expand All @@ -28,4 +30,7 @@ class EdgeBlur {

/// The tint color to be applied to the blur effect.
final Color? tintColor;

/// The tile mode to be used in the blur effect.
final TileMode tileMode;
}
2 changes: 1 addition & 1 deletion lib/src/soft_edge_blur.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class SoftEdgeBlur extends StatelessWidget {
..imageFilter = ui.ImageFilter.blur(
sigmaX: edge.sigma,
sigmaY: edge.sigma,
tileMode: TileMode.clamp,
tileMode: edge.tileMode,
);

canvas.drawImage(image, Offset.zero, blurredPaint);
Expand Down

0 comments on commit 1655779

Please sign in to comment.