Showing
1 changed file
with
14 additions
and
0 deletions
@@ -12,6 +12,20 @@ class RSizedBox extends SizedBox { | @@ -12,6 +12,20 @@ class RSizedBox extends SizedBox { | ||
12 | }) : _square = false, | 12 | }) : _square = false, |
13 | super(key: key, child: child, width: width, height: height); | 13 | super(key: key, child: child, width: width, height: height); |
14 | 14 | ||
15 | + const RSizedBox.vertical( | ||
16 | + double? height, { | ||
17 | + Key? key, | ||
18 | + Widget? child, | ||
19 | + }) : _square = false, | ||
20 | + super(key: key, child: child, height: height); | ||
21 | + | ||
22 | + const RSizedBox.horizontal( | ||
23 | + double? width, { | ||
24 | + Key? key, | ||
25 | + Widget? child, | ||
26 | + }) : _square = false, | ||
27 | + super(key: key, child: child, width: width); | ||
28 | + | ||
15 | const RSizedBox.square({ | 29 | const RSizedBox.square({ |
16 | Key? key, | 30 | Key? key, |
17 | double? height, | 31 | double? height, |
-
Please register or login to post a comment