applyNewDimensions method

  1. @override
void applyNewDimensions ()
override

Notifies the activity that the dimensions of the underlying viewport or contents have changed.

Called after applyViewportDimension or applyContentDimensions have changed the minScrollExtent, the maxScrollExtent, or the viewportDimension. When this method is called, it should be called after any corrections are applied to pixels using correctPixels, not before.

The default implementation informs the activity of the new dimensions by calling its ScrollActivity.applyNewDimensions method.

See also:

Implementation

@override
void applyNewDimensions() {
  super.applyNewDimensions();
  context.setCanDrag(physics.shouldAcceptUserOffset(this));
}