@@ -47,30 +47,6 @@ class WrapperConstraintsExample extends StatelessWidget {
4747 right: 200 ,
4848 ),
4949 ),
50- item ('outTopLeftTo' ).applyConstraint (
51- outTopLeftTo: rId (1 ),
52- ),
53- item ('outTopCenterTo' ).applyConstraint (
54- outTopCenterTo: rId (1 ),
55- ),
56- item ('outTopRightTo' ).applyConstraint (
57- outTopRightTo: rId (1 ),
58- ),
59- item ('outCenterLeftTo' ).applyConstraint (
60- outCenterLeftTo: rId (1 ),
61- ),
62- item ('outCenterRightTo' ).applyConstraint (
63- outCenterRightTo: rId (1 ),
64- ),
65- item ('outBottomLeftTo' ).applyConstraint (
66- outBottomLeftTo: rId (1 ),
67- ),
68- item ('outBottomCenterTo' ).applyConstraint (
69- outBottomCenterTo: rId (1 ),
70- ),
71- item ('outBottomRightTo' ).applyConstraint (
72- outBottomRightTo: rId (1 ),
73- ),
7450 item ('centerTopLeftTo' ).applyConstraint (
7551 centerTopLeftTo: rId (0 ),
7652 ),
@@ -95,6 +71,40 @@ class WrapperConstraintsExample extends StatelessWidget {
9571 item ('centerBottomRightTo' ).applyConstraint (
9672 centerBottomRightTo: rId (0 ),
9773 ),
74+ item ('centerHorizontalTo' , Colors .green).applyConstraint (
75+ centerHorizontalTo: rId (0 ),
76+ top: rId (0 ).top,
77+ translate: const Offset (0 , 50 ),
78+ ),
79+ item ('centerVerticalTo' , Colors .green).applyConstraint (
80+ centerVerticalTo: rId (0 ),
81+ left: rId (0 ).left,
82+ translate: const Offset (50 , 0 ),
83+ ),
84+ item ('outTopLeftTo' ).applyConstraint (
85+ outTopLeftTo: rId (1 ),
86+ ),
87+ item ('outTopCenterTo' ).applyConstraint (
88+ outTopCenterTo: rId (1 ),
89+ ),
90+ item ('outTopRightTo' ).applyConstraint (
91+ outTopRightTo: rId (1 ),
92+ ),
93+ item ('outCenterLeftTo' ).applyConstraint (
94+ outCenterLeftTo: rId (1 ),
95+ ),
96+ item ('outCenterRightTo' ).applyConstraint (
97+ outCenterRightTo: rId (1 ),
98+ ),
99+ item ('outBottomLeftTo' ).applyConstraint (
100+ outBottomLeftTo: rId (1 ),
101+ ),
102+ item ('outBottomCenterTo' ).applyConstraint (
103+ outBottomCenterTo: rId (1 ),
104+ ),
105+ item ('outBottomRightTo' ).applyConstraint (
106+ outBottomRightTo: rId (1 ),
107+ ),
98108 item ('topLeftTo' , Colors .green).applyConstraint (
99109 topLeftTo: rId (1 ),
100110 ),
0 commit comments