Skip to content

Commit 5e9a38d

Browse files
committed
small changes
1 parent 3e949e8 commit 5e9a38d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/animations/turn_on_the_light/turn_on_the_light.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ class LightClipper extends CustomClipper<Path> {
7878

7979
@override
8080
Path getClip(Size size) {
81-
final circlePath = Path();
82-
circlePath.addRRect(RRect.fromRectXY(
83-
Rect.fromCircle(center: Offset(x, y), radius: radius), radius, radius));
84-
final fullPath = Path();
85-
fullPath.addRect(Rect.fromLTWH(0, 0, size.width, size.height));
81+
final circlePath = Path()
82+
..addOval(Rect.fromCircle(center: Offset(x, y), radius: radius));
83+
final fullPath = Path()
84+
..addRect(Rect.fromLTWH(0, 0, size.width, size.height));
8685
return Path.combine(PathOperation.reverseDifference, circlePath, fullPath);
8786
}
8887

0 commit comments

Comments
 (0)