Showing
2 changed files
with
6 additions
and
3 deletions
@@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
2 | * Fix Transform Widget alignment | 2 | * Fix Transform Widget alignment |
3 | * Fix CustomPaint Widget size | 3 | * Fix CustomPaint Widget size |
4 | * Add DecorationImage to BoxDecoration | 4 | * Add DecorationImage to BoxDecoration |
5 | +* Add default values to ClipRRect | ||
5 | 6 | ||
6 | # 1.3.8 | 7 | # 1.3.8 |
7 | * Add jpeg image loading function | 8 | * Add jpeg image loading function |
@@ -48,9 +48,11 @@ class ClipRect extends SingleChildWidget { | @@ -48,9 +48,11 @@ class ClipRect extends SingleChildWidget { | ||
48 | class ClipRRect extends SingleChildWidget { | 48 | class ClipRRect extends SingleChildWidget { |
49 | ClipRRect({ | 49 | ClipRRect({ |
50 | Widget child, | 50 | Widget child, |
51 | - this.horizontalRadius, | ||
52 | - this.verticalRadius, | ||
53 | - }) : super(child: child); | 51 | + this.horizontalRadius = 0, |
52 | + this.verticalRadius = 0, | ||
53 | + }) : assert(horizontalRadius != null), | ||
54 | + assert(verticalRadius != null), | ||
55 | + super(child: child); | ||
54 | 56 | ||
55 | final double horizontalRadius; | 57 | final double horizontalRadius; |
56 | final double verticalRadius; | 58 | final double verticalRadius; |
-
Please register or login to post a comment