applyParentOffset method

  1. @override
void applyParentOffset(
  1. Offset offset
)

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) {
  if (isDistressed) return; // todo-10 this should not be, only if distress actually happens

  super.applyParentOffset(offset);
  _indicatorRect = _indicatorRect.translate(offset.dx, offset.dy);
  _labelContainer.applyParentOffset(offset);
}