Skip to content

Commit d5006d7

Browse files
author
fbchen
committed
update effect.gif
1 parent a68dacc commit d5006d7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class ExampleState extends State<Example> {
100100
).applyConstraint(
101101
id: box1,
102102
width: 200,
103-
height: 200,
103+
height: 100,
104104
topRightTo: parent,
105105
),
106106
Container(
@@ -118,7 +118,7 @@ class ExampleState extends State<Example> {
118118
Container(
119119
color: Colors.orange,
120120
width: 200,
121-
height: 300,
121+
height: 150,
122122
alignment: Alignment.center,
123123
child: const Text('box3'),
124124
).applyConstraint(
@@ -236,7 +236,7 @@ class ExampleState extends State<Example> {
236236
color: Colors.yellow,
237237
alignment: Alignment.bottomCenter,
238238
child: const Text(
239-
'percentage layout, width: 50% of parent, height: 30% of parent'),
239+
'percentage layout\nwidth: 50% of parent\nheight: 30% of parent'),
240240
).applyConstraint(
241241
width: matchConstraint,
242242
height: matchConstraint,

effect.gif

-129 KB
Loading

lib/example.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ExampleState extends State<Example> {
3838
).applyConstraint(
3939
id: box1,
4040
width: 200,
41-
height: 200,
41+
height: 100,
4242
topRightTo: parent,
4343
),
4444
Container(
@@ -56,7 +56,7 @@ class ExampleState extends State<Example> {
5656
Container(
5757
color: Colors.orange,
5858
width: 200,
59-
height: 300,
59+
height: 150,
6060
alignment: Alignment.center,
6161
child: const Text('box3'),
6262
).applyConstraint(
@@ -174,7 +174,7 @@ class ExampleState extends State<Example> {
174174
color: Colors.yellow,
175175
alignment: Alignment.bottomCenter,
176176
child: const Text(
177-
'percentage layout, width: 50% of parent, height: 30% of parent'),
177+
'percentage layout\nwidth: 50% of parent\nheight: 30% of parent'),
178178
).applyConstraint(
179179
width: matchConstraint,
180180
height: matchConstraint,

0 commit comments

Comments
 (0)