@@ -175,6 +175,22 @@ extension ConstrainedWidgetsExt on Widget {
175
175
@_wrapperConstraint ConstraintId ? bottomRightTo,
176
176
@_wrapperConstraint ConstraintId ? centerHorizontalTo,
177
177
@_wrapperConstraint ConstraintId ? centerVerticalTo,
178
+ @_wrapperConstraint ConstraintId ? outTopLeftTo,
179
+ @_wrapperConstraint ConstraintId ? outTopCenterTo,
180
+ @_wrapperConstraint ConstraintId ? outTopRightTo,
181
+ @_wrapperConstraint ConstraintId ? outCenterLeftTo,
182
+ @_wrapperConstraint ConstraintId ? outCenterRightTo,
183
+ @_wrapperConstraint ConstraintId ? outBottomLeftTo,
184
+ @_wrapperConstraint ConstraintId ? outBottomCenterTo,
185
+ @_wrapperConstraint ConstraintId ? outBottomRightTo,
186
+ @_wrapperConstraint ConstraintId ? centerTopLeftTo,
187
+ @_wrapperConstraint ConstraintId ? centerTopCenterTo,
188
+ @_wrapperConstraint ConstraintId ? centerTopRightTo,
189
+ @_wrapperConstraint ConstraintId ? centerCenterLeftTo,
190
+ @_wrapperConstraint ConstraintId ? centerCenterRightTo,
191
+ @_wrapperConstraint ConstraintId ? centerBottomLeftTo,
192
+ @_wrapperConstraint ConstraintId ? centerBottomCenterTo,
193
+ @_wrapperConstraint ConstraintId ? centerBottomRightTo,
178
194
OnLayoutCallback ? callback,
179
195
double chainWeight = 1 ,
180
196
bool percentageTranslate = false ,
@@ -231,6 +247,22 @@ extension ConstrainedWidgetsExt on Widget {
231
247
maxHeight: maxHeight,
232
248
widthHeightRatio: widthHeightRatio,
233
249
ratioBaseOnWidth: ratioBaseOnWidth,
250
+ outTopLeftTo: outTopLeftTo,
251
+ outTopCenterTo: outTopCenterTo,
252
+ outTopRightTo: outTopRightTo,
253
+ outCenterLeftTo: outCenterLeftTo,
254
+ outCenterRightTo: outCenterRightTo,
255
+ outBottomLeftTo: outBottomLeftTo,
256
+ outBottomCenterTo: outBottomCenterTo,
257
+ outBottomRightTo: outBottomRightTo,
258
+ centerTopLeftTo: centerTopLeftTo,
259
+ centerTopCenterTo: centerTopCenterTo,
260
+ centerTopRightTo: centerTopRightTo,
261
+ centerCenterLeftTo: centerCenterLeftTo,
262
+ centerCenterRightTo: centerCenterRightTo,
263
+ centerBottomLeftTo: centerBottomLeftTo,
264
+ centerBottomCenterTo: centerBottomCenterTo,
265
+ centerBottomRightTo: centerBottomRightTo,
234
266
),
235
267
child: this ,
236
268
);
@@ -554,6 +586,38 @@ class Constraint extends ConstraintDefine {
554
586
final ConstraintId ? centerHorizontalTo;
555
587
@_wrapperConstraint
556
588
final ConstraintId ? centerVerticalTo;
589
+ @_wrapperConstraint
590
+ final ConstraintId ? outTopLeftTo;
591
+ @_wrapperConstraint
592
+ final ConstraintId ? outTopCenterTo;
593
+ @_wrapperConstraint
594
+ final ConstraintId ? outTopRightTo;
595
+ @_wrapperConstraint
596
+ final ConstraintId ? outCenterLeftTo;
597
+ @_wrapperConstraint
598
+ final ConstraintId ? outCenterRightTo;
599
+ @_wrapperConstraint
600
+ final ConstraintId ? outBottomLeftTo;
601
+ @_wrapperConstraint
602
+ final ConstraintId ? outBottomCenterTo;
603
+ @_wrapperConstraint
604
+ final ConstraintId ? outBottomRightTo;
605
+ @_wrapperConstraint
606
+ final ConstraintId ? centerTopLeftTo;
607
+ @_wrapperConstraint
608
+ final ConstraintId ? centerTopCenterTo;
609
+ @_wrapperConstraint
610
+ final ConstraintId ? centerTopRightTo;
611
+ @_wrapperConstraint
612
+ final ConstraintId ? centerCenterLeftTo;
613
+ @_wrapperConstraint
614
+ final ConstraintId ? centerCenterRightTo;
615
+ @_wrapperConstraint
616
+ final ConstraintId ? centerBottomLeftTo;
617
+ @_wrapperConstraint
618
+ final ConstraintId ? centerBottomCenterTo;
619
+ @_wrapperConstraint
620
+ final ConstraintId ? centerBottomRightTo;
557
621
558
622
final OnLayoutCallback ? callback;
559
623
final double chainWeight;
@@ -612,6 +676,22 @@ class Constraint extends ConstraintDefine {
612
676
@_wrapperConstraint this .bottomRightTo,
613
677
@_wrapperConstraint this .centerHorizontalTo,
614
678
@_wrapperConstraint this .centerVerticalTo,
679
+ @_wrapperConstraint this .outTopLeftTo,
680
+ @_wrapperConstraint this .outTopCenterTo,
681
+ @_wrapperConstraint this .outTopRightTo,
682
+ @_wrapperConstraint this .outCenterLeftTo,
683
+ @_wrapperConstraint this .outCenterRightTo,
684
+ @_wrapperConstraint this .outBottomLeftTo,
685
+ @_wrapperConstraint this .outBottomCenterTo,
686
+ @_wrapperConstraint this .outBottomRightTo,
687
+ @_wrapperConstraint this .centerTopLeftTo,
688
+ @_wrapperConstraint this .centerTopCenterTo,
689
+ @_wrapperConstraint this .centerTopRightTo,
690
+ @_wrapperConstraint this .centerCenterLeftTo,
691
+ @_wrapperConstraint this .centerCenterRightTo,
692
+ @_wrapperConstraint this .centerBottomLeftTo,
693
+ @_wrapperConstraint this .centerBottomCenterTo,
694
+ @_wrapperConstraint this .centerBottomRightTo,
615
695
this .callback,
616
696
this .chainWeight = 1 ,
617
697
this .percentageTranslate = false ,
@@ -662,6 +742,22 @@ class Constraint extends ConstraintDefine {
662
742
bottomRightTo == other.bottomRightTo &&
663
743
centerHorizontalTo == other.centerHorizontalTo &&
664
744
centerVerticalTo == other.centerVerticalTo &&
745
+ outTopLeftTo == other.outTopLeftTo &&
746
+ outTopCenterTo == other.outTopCenterTo &&
747
+ outTopRightTo == other.outTopRightTo &&
748
+ outCenterLeftTo == other.outCenterLeftTo &&
749
+ outCenterRightTo == other.outCenterRightTo &&
750
+ outBottomLeftTo == other.outBottomLeftTo &&
751
+ outBottomCenterTo == other.outBottomCenterTo &&
752
+ outBottomRightTo == other.outBottomRightTo &&
753
+ centerTopLeftTo == other.centerTopLeftTo &&
754
+ centerTopCenterTo == other.centerTopCenterTo &&
755
+ centerTopRightTo == other.centerTopRightTo &&
756
+ centerCenterLeftTo == other.centerCenterLeftTo &&
757
+ centerCenterRightTo == other.centerCenterRightTo &&
758
+ centerBottomLeftTo == other.centerBottomLeftTo &&
759
+ centerBottomCenterTo == other.centerBottomCenterTo &&
760
+ centerBottomRightTo == other.centerBottomRightTo &&
665
761
callback == other.callback &&
666
762
percentageTranslate == other.percentageTranslate &&
667
763
minWidth == other.minWidth &&
@@ -707,6 +803,22 @@ class Constraint extends ConstraintDefine {
707
803
bottomRightTo.hashCode ^
708
804
centerHorizontalTo.hashCode ^
709
805
centerVerticalTo.hashCode ^
806
+ outTopLeftTo.hashCode ^
807
+ outTopCenterTo.hashCode ^
808
+ outTopRightTo.hashCode ^
809
+ outCenterLeftTo.hashCode ^
810
+ outCenterRightTo.hashCode ^
811
+ outBottomLeftTo.hashCode ^
812
+ outBottomCenterTo.hashCode ^
813
+ outBottomRightTo.hashCode ^
814
+ centerTopLeftTo.hashCode ^
815
+ centerTopCenterTo.hashCode ^
816
+ centerTopRightTo.hashCode ^
817
+ centerCenterLeftTo.hashCode ^
818
+ centerCenterRightTo.hashCode ^
819
+ centerBottomLeftTo.hashCode ^
820
+ centerBottomCenterTo.hashCode ^
821
+ centerBottomRightTo.hashCode ^
710
822
callback.hashCode ^
711
823
percentageTranslate.hashCode ^
712
824
minWidth.hashCode ^
@@ -845,6 +957,106 @@ class Constraint extends ConstraintDefine {
845
957
bottom = centerVerticalTo! .bottom;
846
958
}
847
959
960
+ if (outTopLeftTo != null ) {
961
+ right = outTopLeftTo! .left;
962
+ bottom = outTopLeftTo! .top;
963
+ }
964
+
965
+ if (outTopCenterTo != null ) {
966
+ left = outTopCenterTo! .left;
967
+ right = outTopCenterTo! .right;
968
+ bottom = outTopCenterTo! .top;
969
+ }
970
+
971
+ if (outTopRightTo != null ) {
972
+ left = outTopRightTo! .right;
973
+ bottom = outTopRightTo! .top;
974
+ }
975
+
976
+ if (outCenterLeftTo != null ) {
977
+ top = outCenterLeftTo! .top;
978
+ bottom = outCenterLeftTo! .bottom;
979
+ right = outCenterLeftTo! .left;
980
+ }
981
+
982
+ if (outCenterRightTo != null ) {
983
+ top = outCenterRightTo! .top;
984
+ bottom = outCenterRightTo! .bottom;
985
+ left = outCenterRightTo! .right;
986
+ }
987
+
988
+ if (outBottomLeftTo != null ) {
989
+ right = outBottomLeftTo! .left;
990
+ top = outBottomLeftTo! .bottom;
991
+ }
992
+
993
+ if (outBottomCenterTo != null ) {
994
+ left = outBottomCenterTo! .left;
995
+ right = outBottomCenterTo! .right;
996
+ top = outBottomCenterTo! .bottom;
997
+ }
998
+
999
+ if (outBottomRightTo != null ) {
1000
+ left = outBottomRightTo! .right;
1001
+ top = outBottomRightTo! .bottom;
1002
+ }
1003
+
1004
+ if (centerTopLeftTo != null ) {
1005
+ left = centerTopLeftTo! .left;
1006
+ right = centerTopLeftTo! .left;
1007
+ top = centerTopLeftTo! .top;
1008
+ bottom = centerTopLeftTo! .top;
1009
+ }
1010
+
1011
+ if (centerTopCenterTo != null ) {
1012
+ left = centerTopCenterTo! .left;
1013
+ right = centerTopCenterTo! .right;
1014
+ top = centerTopCenterTo! .top;
1015
+ bottom = centerTopCenterTo! .top;
1016
+ }
1017
+
1018
+ if (centerTopRightTo != null ) {
1019
+ left = centerTopRightTo! .right;
1020
+ right = centerTopRightTo! .right;
1021
+ top = centerTopRightTo! .top;
1022
+ bottom = centerTopRightTo! .top;
1023
+ }
1024
+
1025
+ if (centerCenterLeftTo != null ) {
1026
+ left = centerCenterLeftTo! .left;
1027
+ right = centerCenterLeftTo! .left;
1028
+ top = centerCenterLeftTo! .top;
1029
+ bottom = centerCenterLeftTo! .bottom;
1030
+ }
1031
+
1032
+ if (centerCenterRightTo != null ) {
1033
+ left = centerCenterRightTo! .right;
1034
+ right = centerCenterRightTo! .right;
1035
+ top = centerCenterRightTo! .top;
1036
+ bottom = centerCenterRightTo! .bottom;
1037
+ }
1038
+
1039
+ if (centerBottomLeftTo != null ) {
1040
+ left = centerBottomLeftTo! .left;
1041
+ right = centerBottomLeftTo! .left;
1042
+ top = centerBottomLeftTo! .bottom;
1043
+ bottom = centerBottomLeftTo! .bottom;
1044
+ }
1045
+
1046
+ if (centerBottomCenterTo != null ) {
1047
+ left = centerBottomCenterTo! .left;
1048
+ right = centerBottomCenterTo! .right;
1049
+ top = centerBottomCenterTo! .bottom;
1050
+ bottom = centerBottomCenterTo! .bottom;
1051
+ }
1052
+
1053
+ if (centerBottomRightTo != null ) {
1054
+ left = centerBottomRightTo! .right;
1055
+ right = centerBottomRightTo! .right;
1056
+ top = centerBottomRightTo! .bottom;
1057
+ bottom = centerBottomRightTo! .bottom;
1058
+ }
1059
+
848
1060
/// Convert wrapper constraints finish
849
1061
850
1062
/// Constraint priority: matchParent > wrapper constraints > base constraints
0 commit comments