applyParentOffset method
Allow a parent container to move this Container after layout.
Override if parent move needs to propagate to internals of
this Container
.
Implementation
@override
void applyParentOffset(ui.Offset offset) {
super.applyParentOffset(offset);
// Move all container atomic elements - lines, labels, circles etc
_xGridLinesContainer.applyParentOffset(offset);
// draw vertical grid
_yGridLinesContainer.applyParentOffset(offset);
// Apply offset to lines and bars.
chartTopContainer.pointsColumns.applyParentOffset(offset);
// Any time offset of [_chartContainer.pointsColumns] has changed,
// we have to recreate the absolute positions
// of where to draw data points, data lines and data bars.
// todo-01-morph-important : problem : this call actually sets absolute values on Presenters !!
setupPresentersColumns();
}