Skip to content

Commit 856c3ef

Browse files
author
fbchen
committed
update example
1 parent e5eb7a1 commit 856c3ef

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

example/wrapper_constraints.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,18 @@ class WrapperConstraintsExampleState extends State<WrapperConstraintsExample> {
149149
item('bottomRightTo', Colors.green).applyConstraint(
150150
bottomRightTo: rId(1),
151151
),
152-
const Text(
153-
'The display area is overlapping\nPlease view it in full screen on the computer',
154-
style: TextStyle(
155-
color: Colors.redAccent,
156-
fontSize: 16,
152+
Container(
153+
color: Colors.black,
154+
child: const Text(
155+
'The display area is overlapping\nPlease view it in full screen on the computer',
156+
style: TextStyle(
157+
color: Colors.white,
158+
fontSize: 16,
159+
),
160+
textAlign: TextAlign.center,
157161
),
158-
textAlign: TextAlign.center,
159162
).applyConstraint(
160163
topCenterTo: parent,
161-
margin: const EdgeInsets.only(
162-
top: 5,
163-
),
164164
visibility: rightX - 1 < leftX ? visible : gone,
165165
),
166166
],

0 commit comments

Comments
 (0)