title: Flutter - Size of Transform.scale widget does not change when its child is scaled
body: <p>I have a widget <code>A</code> that I want to scale (pixel perfect). Depending on display width of the device, the size of <code>A</code> should be either increased or decreased. I tried the <code>Transform.scale</code> widget to change the size of the <code>A</code>. This works well but the size of the <code>Transform.scale</code> widget never changes. It always matches the original size of <code>A</code> (without scaling). 
  Is there any way to force <code>Transform.scale</code> that it always adopts the size of its child? Or is there an alternative approach? </p>
  
  <p>You can find an image here that shows the current and the required situation</p>
  
  <p><strong>EDIT:</strong>
  Widget <code>A</code> and its children should shrink/grow uniformly. The ratios between them should not change.</p>
  
  <p><a href="https://i.stack.imgur.com/wuCTR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wuCTR.png" alt="enter image description here"></a></p>
  
  <p>Here is the code I currently tried</p>
  
  <pre><code>_buildWidgetA(scalingFactor) {
    return Transform.scale(
      scale: scalingFactor,
      child: A(),
    );
  }
  </code></pre>