@@ -782,26 +782,42 @@ class ConstraintId {
782
782
contextCacheNode = node;
783
783
}
784
784
785
- late _Align left = _Align (this , _AlignType .left)
785
+ late final _Align left = _Align (this , _AlignType .left)
786
786
.._margin = _leftMargin
787
787
.._goneMargin = _leftGoneMargin;
788
788
789
- late _Align top = _Align (this , _AlignType .top)
789
+ late final _Align top = _Align (this , _AlignType .top)
790
790
.._margin = _topMargin
791
791
.._goneMargin = _topGoneMargin;
792
792
793
- late _Align right = _Align (this , _AlignType .right)
793
+ late final _Align right = _Align (this , _AlignType .right)
794
794
.._margin = _rightMargin
795
795
.._goneMargin = _rightGoneMargin;
796
796
797
- late _Align bottom = _Align (this , _AlignType .bottom)
797
+ late final _Align bottom = _Align (this , _AlignType .bottom)
798
798
.._margin = _bottomMargin
799
799
.._goneMargin = _bottomGoneMargin;
800
800
801
- late _Align baseline = _Align (this , _AlignType .baseline)
801
+ late final _Align baseline = _Align (this , _AlignType .baseline)
802
802
.._margin = _bottomMargin
803
803
.._goneMargin = _bottomGoneMargin;
804
804
805
+ late final _Align _leftReverse = _Align (this , _AlignType .left)
806
+ .._margin = _rightMargin
807
+ .._goneMargin = _rightGoneMargin;
808
+
809
+ late final _Align _topReverse = _Align (this , _AlignType .top)
810
+ .._margin = _bottomMargin
811
+ .._goneMargin = _bottomGoneMargin;
812
+
813
+ late final _Align _rightReverse = _Align (this , _AlignType .right)
814
+ .._margin = _leftMargin
815
+ .._goneMargin = _leftGoneMargin;
816
+
817
+ late final _Align _bottomReverse = _Align (this , _AlignType .bottom)
818
+ .._margin = _topMargin
819
+ .._goneMargin = _topGoneMargin;
820
+
805
821
@override
806
822
bool operator == (Object other) {
807
823
if (identical (this , other)) {
@@ -1388,102 +1404,102 @@ class Constraint extends ConstraintDefine {
1388
1404
}
1389
1405
1390
1406
if (outTopLeftTo != null ) {
1391
- right = outTopLeftTo! .left ;
1392
- bottom = outTopLeftTo! .top ;
1407
+ right = outTopLeftTo! ._leftReverse ;
1408
+ bottom = outTopLeftTo! ._topReverse ;
1393
1409
}
1394
1410
1395
1411
if (outTopCenterTo != null ) {
1396
1412
left = outTopCenterTo! .left;
1397
1413
right = outTopCenterTo! .right;
1398
- bottom = outTopCenterTo! .top ;
1414
+ bottom = outTopCenterTo! ._topReverse ;
1399
1415
}
1400
1416
1401
1417
if (outTopRightTo != null ) {
1402
- left = outTopRightTo! .right ;
1403
- bottom = outTopRightTo! .top ;
1418
+ left = outTopRightTo! ._rightReverse ;
1419
+ bottom = outTopRightTo! ._topReverse ;
1404
1420
}
1405
1421
1406
1422
if (outCenterLeftTo != null ) {
1407
1423
top = outCenterLeftTo! .top;
1408
1424
bottom = outCenterLeftTo! .bottom;
1409
- right = outCenterLeftTo! .left ;
1425
+ right = outCenterLeftTo! ._leftReverse ;
1410
1426
}
1411
1427
1412
1428
if (outCenterRightTo != null ) {
1413
1429
top = outCenterRightTo! .top;
1414
1430
bottom = outCenterRightTo! .bottom;
1415
- left = outCenterRightTo! .right ;
1431
+ left = outCenterRightTo! ._rightReverse ;
1416
1432
}
1417
1433
1418
1434
if (outBottomLeftTo != null ) {
1419
- right = outBottomLeftTo! .left ;
1420
- top = outBottomLeftTo! .bottom ;
1435
+ right = outBottomLeftTo! ._leftReverse ;
1436
+ top = outBottomLeftTo! ._bottomReverse ;
1421
1437
}
1422
1438
1423
1439
if (outBottomCenterTo != null ) {
1424
1440
left = outBottomCenterTo! .left;
1425
1441
right = outBottomCenterTo! .right;
1426
- top = outBottomCenterTo! .bottom ;
1442
+ top = outBottomCenterTo! ._bottomReverse ;
1427
1443
}
1428
1444
1429
1445
if (outBottomRightTo != null ) {
1430
- left = outBottomRightTo! .right ;
1431
- top = outBottomRightTo! .bottom ;
1446
+ left = outBottomRightTo! ._rightReverse ;
1447
+ top = outBottomRightTo! ._bottomReverse ;
1432
1448
}
1433
1449
1434
1450
if (centerTopLeftTo != null ) {
1435
1451
left = centerTopLeftTo! .left;
1436
- right = centerTopLeftTo! .left ;
1452
+ right = centerTopLeftTo! ._leftReverse ;
1437
1453
top = centerTopLeftTo! .top;
1438
- bottom = centerTopLeftTo! .top ;
1454
+ bottom = centerTopLeftTo! ._topReverse ;
1439
1455
}
1440
1456
1441
1457
if (centerTopCenterTo != null ) {
1442
1458
left = centerTopCenterTo! .left;
1443
1459
right = centerTopCenterTo! .right;
1444
1460
top = centerTopCenterTo! .top;
1445
- bottom = centerTopCenterTo! .top ;
1461
+ bottom = centerTopCenterTo! ._topReverse ;
1446
1462
}
1447
1463
1448
1464
if (centerTopRightTo != null ) {
1449
- left = centerTopRightTo! .right ;
1465
+ left = centerTopRightTo! ._rightReverse ;
1450
1466
right = centerTopRightTo! .right;
1451
1467
top = centerTopRightTo! .top;
1452
- bottom = centerTopRightTo! .top ;
1468
+ bottom = centerTopRightTo! ._topReverse ;
1453
1469
}
1454
1470
1455
1471
if (centerCenterLeftTo != null ) {
1456
1472
left = centerCenterLeftTo! .left;
1457
- right = centerCenterLeftTo! .left ;
1473
+ right = centerCenterLeftTo! ._leftReverse ;
1458
1474
top = centerCenterLeftTo! .top;
1459
1475
bottom = centerCenterLeftTo! .bottom;
1460
1476
}
1461
1477
1462
1478
if (centerCenterRightTo != null ) {
1463
- left = centerCenterRightTo! .right ;
1479
+ left = centerCenterRightTo! ._rightReverse ;
1464
1480
right = centerCenterRightTo! .right;
1465
1481
top = centerCenterRightTo! .top;
1466
1482
bottom = centerCenterRightTo! .bottom;
1467
1483
}
1468
1484
1469
1485
if (centerBottomLeftTo != null ) {
1470
1486
left = centerBottomLeftTo! .left;
1471
- right = centerBottomLeftTo! .left ;
1472
- top = centerBottomLeftTo! .bottom ;
1487
+ right = centerBottomLeftTo! ._leftReverse ;
1488
+ top = centerBottomLeftTo! ._bottomReverse ;
1473
1489
bottom = centerBottomLeftTo! .bottom;
1474
1490
}
1475
1491
1476
1492
if (centerBottomCenterTo != null ) {
1477
1493
left = centerBottomCenterTo! .left;
1478
1494
right = centerBottomCenterTo! .right;
1479
- top = centerBottomCenterTo! .bottom ;
1495
+ top = centerBottomCenterTo! ._bottomReverse ;
1480
1496
bottom = centerBottomCenterTo! .bottom;
1481
1497
}
1482
1498
1483
1499
if (centerBottomRightTo != null ) {
1484
- left = centerBottomRightTo! .right ;
1500
+ left = centerBottomRightTo! ._rightReverse ;
1485
1501
right = centerBottomRightTo! .right;
1486
- top = centerBottomRightTo! .bottom ;
1502
+ top = centerBottomRightTo! ._bottomReverse ;
1487
1503
bottom = centerBottomRightTo! .bottom;
1488
1504
}
1489
1505
0 commit comments