mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
remove duplicative checks (#47026)
This commit is contained in:
parent
b0b8b91b97
commit
467f3d49ec
@ -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.');
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user