Assume we have an empty parent widget (a Container), with no size, and positioned absolutely (within it's own parent) at a top/left (x/y) coordinate. Then we place a child widget (with variable size, which is not known beforehand) within the parent. Is there a way to position the child at -50% of its own width, such that the child's horizontal center appears at the x coordinate of its parent? I don't want to use global keys as there will be hundreds of instances. I've tried Transform.translate (only accepts a known x offset), FractionalOffsets, FractionallySizedBoxes, Alignments etc, but nothing seems to do what I'm trying to achieve. Does anyone know of a solution?

