From e5c4c4b27ac1d4585bb52c875c427f933fb1341a Mon Sep 17 00:00:00 2001 From: Sarbagya Dhaubanjar Date: Thu, 29 Oct 2020 08:07:03 +0545 Subject: [PATCH] replaced null check with `hasContentDimensions` (#69164) --- packages/flutter/lib/src/widgets/nested_scroll_view.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/nested_scroll_view.dart b/packages/flutter/lib/src/widgets/nested_scroll_view.dart index da28f45cdc..2a29cdfe87 100644 --- a/packages/flutter/lib/src/widgets/nested_scroll_view.dart +++ b/packages/flutter/lib/src/widgets/nested_scroll_view.dart @@ -802,7 +802,7 @@ class _NestedScrollCoordinator implements ScrollActivityDelegate, ScrollHoldCont bool get hasScrolledBody { for (final _NestedScrollPosition position in _innerPositions) { - assert(position.minScrollExtent != null && position.hasPixels); + assert(position.hasContentDimensions && position.hasPixels); if (position.pixels > position.minScrollExtent) { return true; }