Skip to content

Commit 6c5c0f8

Browse files
author
fbchen
committed
update example
1 parent ddc68c7 commit 6c5c0f8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ class ExampleState extends State<Example> {
289289

290290
```dart
291291
class ExampleState extends State<Example> {
292-
ConstraintId left = ConstraintId();
293-
ConstraintId right = ConstraintId();
292+
ConstraintId topChild = ConstraintId();
293+
ConstraintId bottomChild = ConstraintId();
294294
ConstraintId guideline = ConstraintId();
295295
296296
@override
@@ -302,7 +302,7 @@ class ExampleState extends State<Example> {
302302
Container(
303303
color: const Color(0xFF005BBB),
304304
).applyConstraint(
305-
id: left,
305+
id: topChild,
306306
width: matchParent,
307307
height: matchConstraint,
308308
top: parent.top,
@@ -316,7 +316,7 @@ class ExampleState extends State<Example> {
316316
Container(
317317
color: const Color(0xFFFFD500),
318318
).applyConstraint(
319-
id: right,
319+
id: bottomChild,
320320
width: matchParent,
321321
height: matchConstraint,
322322
top: guideline.bottom,

lib/example.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class Example extends StatefulWidget {
99
}
1010

1111
class ExampleState extends State<Example> {
12-
ConstraintId left = ConstraintId();
13-
ConstraintId right = ConstraintId();
12+
ConstraintId topChild = ConstraintId();
13+
ConstraintId bottomChild = ConstraintId();
1414
ConstraintId guideline = ConstraintId();
1515

1616
@override
@@ -22,7 +22,7 @@ class ExampleState extends State<Example> {
2222
Container(
2323
color: const Color(0xFF005BBB),
2424
).applyConstraint(
25-
id: left,
25+
id: topChild,
2626
width: matchParent,
2727
height: matchConstraint,
2828
top: parent.top,
@@ -36,7 +36,7 @@ class ExampleState extends State<Example> {
3636
Container(
3737
color: const Color(0xFFFFD500),
3838
).applyConstraint(
39-
id: right,
39+
id: bottomChild,
4040
width: matchParent,
4141
height: matchConstraint,
4242
top: guideline.bottom,

0 commit comments

Comments
 (0)