updateScrollViewport method
Implementation
@override
void updateScrollViewport() {
if (maxWidth == null ||
scroll.bodyRowsHorizontal?.position.hasViewportDimension != true) {
return;
}
final double bodyWidth = maxWidth! - bodyLeftOffset - bodyRightOffset;
scroll.horizontal!.applyViewportDimension(bodyWidth);
updateCorrectScrollOffset();
}