diff --git a/packages/flutter/lib/src/rendering/sliver.dart b/packages/flutter/lib/src/rendering/sliver.dart index f7acdb4a865..0be986e59b9 100644 --- a/packages/flutter/lib/src/rendering/sliver.dart +++ b/packages/flutter/lib/src/rendering/sliver.dart @@ -442,9 +442,7 @@ class SliverConstraints extends Constraints { verify(growthDirection != null, 'The "growthDirection" is null.'); verifyDouble(scrollOffset, 'scrollOffset'); verifyDouble(overlap, 'overlap'); - verifyDouble(remainingPaintExtent, 'remainingPaintExtent'); verifyDouble(crossAxisExtent, 'crossAxisExtent'); - verifyDouble(viewportMainAxisExtent, 'viewportMainAxisExtent'); verifyDouble(scrollOffset, 'scrollOffset', mustBePositive: true); verify(crossAxisDirection != null, 'The "crossAxisDirection" is null.'); verify(axisDirectionToAxis(axisDirection) != axisDirectionToAxis(crossAxisDirection), 'The "axisDirection" and the "crossAxisDirection" are along the same axis.'); diff --git a/packages/flutter/test/rendering/slivers_test.dart b/packages/flutter/test/rendering/slivers_test.dart index 2dbcb412466..5d91edc9e1d 100644 --- a/packages/flutter/test/rendering/slivers_test.dart +++ b/packages/flutter/test/rendering/slivers_test.dart @@ -947,9 +947,7 @@ void main() { 'SliverConstraints is not valid:\n' ' The "scrollOffset" is NaN.\n' ' The "overlap" is NaN.\n' - ' The "remainingPaintExtent" is NaN.\n' ' The "crossAxisExtent" is NaN.\n' - ' The "viewportMainAxisExtent" is NaN.\n' ' The "scrollOffset" is NaN, expected greater than or equal to zero.\n' ' The "viewportMainAxisExtent" is NaN, expected greater than or equal to zero.\n' ' The "remainingPaintExtent" is NaN, expected greater than or equal to zero.\n'