@@ -551,14 +537,7 @@ abstract class ScrollPosition extends ViewportOffset with ScrollMetrics {
_pendingDimensions=false;
}
assert(!_didChangeViewportDimensionOrReceiveCorrection,'Use correctForNewDimensions() (and return true) to change the scroll offset during applyContentDimensions().');
if(_isMetricsChanged()){
// It isn't safe to trigger the ScrollMetricsNotification if we are in
// the middle of rendering the frame, the developer is likely to schedule
// a new frame(build scheduled during frame is illegal).
scheduleMicrotask(didUpdateScrollMetrics);
_lastMetrics=copyWith();
}
_lastMetrics=copyWith();
returntrue;
}
...
...
@@ -919,13 +898,6 @@ abstract class ScrollPosition extends ViewportOffset with ScrollMetrics {