@@ -1441,10 +1441,15 @@ void main() {
1441
1441
// Horizontal mismatch
1442
1442
expect (
1443
1443
() {
1444
+ final ViewportOffset verticalOffset = ViewportOffset .fixed (0.0 );
1445
+ addTearDown (verticalOffset.dispose);
1446
+ final ViewportOffset horizontalOffset = ViewportOffset .fixed (0.0 );
1447
+ addTearDown (horizontalOffset.dispose);
1448
+
1444
1449
SimpleBuilderTableViewport (
1445
- verticalOffset: ViewportOffset . fixed ( 0.0 ) ,
1450
+ verticalOffset: verticalOffset ,
1446
1451
verticalAxisDirection: AxisDirection .left,
1447
- horizontalOffset: ViewportOffset . fixed ( 0.0 ) ,
1452
+ horizontalOffset: horizontalOffset ,
1448
1453
horizontalAxisDirection: AxisDirection .right,
1449
1454
delegate: builderDelegate,
1450
1455
mainAxis: Axis .vertical,
@@ -1462,10 +1467,15 @@ void main() {
1462
1467
// Vertical mismatch
1463
1468
expect (
1464
1469
() {
1470
+ final ViewportOffset verticalOffset = ViewportOffset .fixed (0.0 );
1471
+ addTearDown (verticalOffset.dispose);
1472
+ final ViewportOffset horizontalOffset = ViewportOffset .fixed (0.0 );
1473
+ addTearDown (horizontalOffset.dispose);
1474
+
1465
1475
SimpleBuilderTableViewport (
1466
- verticalOffset: ViewportOffset . fixed ( 0.0 ) ,
1476
+ verticalOffset: verticalOffset ,
1467
1477
verticalAxisDirection: AxisDirection .up,
1468
- horizontalOffset: ViewportOffset . fixed ( 0.0 ) ,
1478
+ horizontalOffset: horizontalOffset ,
1469
1479
horizontalAxisDirection: AxisDirection .down,
1470
1480
delegate: builderDelegate,
1471
1481
mainAxis: Axis .vertical,
@@ -1483,10 +1493,15 @@ void main() {
1483
1493
// Both
1484
1494
expect (
1485
1495
() {
1496
+ final ViewportOffset verticalOffset = ViewportOffset .fixed (0.0 );
1497
+ addTearDown (verticalOffset.dispose);
1498
+ final ViewportOffset horizontalOffset = ViewportOffset .fixed (0.0 );
1499
+ addTearDown (horizontalOffset.dispose);
1500
+
1486
1501
SimpleBuilderTableViewport (
1487
- verticalOffset: ViewportOffset . fixed ( 0.0 ) ,
1502
+ verticalOffset: verticalOffset ,
1488
1503
verticalAxisDirection: AxisDirection .left,
1489
- horizontalOffset: ViewportOffset . fixed ( 0.0 ) ,
1504
+ horizontalOffset: horizontalOffset ,
1490
1505
horizontalAxisDirection: AxisDirection .down,
1491
1506
delegate: builderDelegate,
1492
1507
mainAxis: Axis .vertical,
@@ -1548,10 +1563,15 @@ void main() {
1548
1563
// Horizontal mismatch
1549
1564
expect (
1550
1565
() {
1566
+ final ViewportOffset verticalOffset = ViewportOffset .fixed (0.0 );
1567
+ addTearDown (verticalOffset.dispose);
1568
+ final ViewportOffset horizontalOffset = ViewportOffset .fixed (0.0 );
1569
+ addTearDown (horizontalOffset.dispose);
1570
+
1551
1571
RenderSimpleBuilderTableViewport (
1552
- verticalOffset: ViewportOffset . fixed ( 0.0 ) ,
1572
+ verticalOffset: verticalOffset ,
1553
1573
verticalAxisDirection: AxisDirection .left,
1554
- horizontalOffset: ViewportOffset . fixed ( 0.0 ) ,
1574
+ horizontalOffset: horizontalOffset ,
1555
1575
horizontalAxisDirection: AxisDirection .right,
1556
1576
delegate: builderDelegate,
1557
1577
mainAxis: Axis .vertical,
@@ -1570,10 +1590,15 @@ void main() {
1570
1590
// Vertical mismatch
1571
1591
expect (
1572
1592
() {
1593
+ final ViewportOffset verticalOffset = ViewportOffset .fixed (0.0 );
1594
+ addTearDown (verticalOffset.dispose);
1595
+ final ViewportOffset horizontalOffset = ViewportOffset .fixed (0.0 );
1596
+ addTearDown (horizontalOffset.dispose);
1597
+
1573
1598
RenderSimpleBuilderTableViewport (
1574
- verticalOffset: ViewportOffset . fixed ( 0.0 ) ,
1599
+ verticalOffset: verticalOffset ,
1575
1600
verticalAxisDirection: AxisDirection .up,
1576
- horizontalOffset: ViewportOffset . fixed ( 0.0 ) ,
1601
+ horizontalOffset: horizontalOffset ,
1577
1602
horizontalAxisDirection: AxisDirection .down,
1578
1603
delegate: builderDelegate,
1579
1604
mainAxis: Axis .vertical,
@@ -1592,10 +1617,15 @@ void main() {
1592
1617
// Both
1593
1618
expect (
1594
1619
() {
1620
+ final ViewportOffset verticalOffset = ViewportOffset .fixed (0.0 );
1621
+ addTearDown (verticalOffset.dispose);
1622
+ final ViewportOffset horizontalOffset = ViewportOffset .fixed (0.0 );
1623
+ addTearDown (horizontalOffset.dispose);
1624
+
1595
1625
RenderSimpleBuilderTableViewport (
1596
- verticalOffset: ViewportOffset . fixed ( 0.0 ) ,
1626
+ verticalOffset: verticalOffset ,
1597
1627
verticalAxisDirection: AxisDirection .left,
1598
- horizontalOffset: ViewportOffset . fixed ( 0.0 ) ,
1628
+ horizontalOffset: horizontalOffset ,
1599
1629
horizontalAxisDirection: AxisDirection .down,
1600
1630
delegate: builderDelegate,
1601
1631
mainAxis: Axis .vertical,
@@ -1622,10 +1652,15 @@ void main() {
1622
1652
}
1623
1653
);
1624
1654
addTearDown (delegate.dispose);
1655
+ final ViewportOffset verticalOffset = ViewportOffset .fixed (10.0 );
1656
+ addTearDown (verticalOffset.dispose);
1657
+ final ViewportOffset horizontalOffset = ViewportOffset .fixed (20.0 );
1658
+ addTearDown (horizontalOffset.dispose);
1659
+
1625
1660
final RenderSimpleBuilderTableViewport renderViewport = RenderSimpleBuilderTableViewport (
1626
- verticalOffset: ViewportOffset . fixed ( 10.0 ) ,
1661
+ verticalOffset: verticalOffset ,
1627
1662
verticalAxisDirection: AxisDirection .down,
1628
- horizontalOffset: ViewportOffset . fixed ( 20.0 ) ,
1663
+ horizontalOffset: horizontalOffset ,
1629
1664
horizontalAxisDirection: AxisDirection .right,
1630
1665
delegate: delegate,
1631
1666
mainAxis: Axis .vertical,
0 commit comments