Skip to content

Commit 3689b9e

Browse files
author
fbchen
committed
update example
1 parent df06f65 commit 3689b9e

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

example/relative_id.dart

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,14 @@ class RelativeIdExample extends StatelessWidget {
2323
centerTo: parent,
2424
),
2525
Container(
26-
color: Colors.green,
27-
child: const Text(
28-
'Indeterminate badge size',
29-
style: TextStyle(
30-
color: Colors.black,
31-
fontSize: 20,
32-
),
33-
),
34-
).applyConstraint(
35-
left: rId(0).right,
36-
bottom: rId(0).top,
37-
translate: const Offset(-0.5, 0.5),
38-
percentageTranslate: true,
39-
),
40-
Container(
41-
color: Colors.green,
26+
color: Colors.redAccent,
4227
).applyConstraint(
4328
width: 100,
4429
height: 100,
4530
left: rId(0).right,
4631
right: rId(0).right,
47-
top: rId(0).bottom,
48-
bottom: rId(0).bottom,
32+
top: rId(0).top,
33+
bottom: rId(0).top,
4934
)
5035
],
5136
),

0 commit comments

Comments
 (0)