title: How to use an AnimatedContainer for animated transforms (ex. Scale)
body: <p>I'm looking to animate the scale of a container using the <a href="https://docs.flutter.io/flutter/widgets/AnimatedContainer/transform.html" rel="noreferrer">transform</a> property of an <a href="https://docs.flutter.io/flutter/widgets/AnimatedContainer-class.html" rel="noreferrer">AnimatedContainer</a>; however, the scale is not being transitioned and jumps directly from start to end.</p>
  
  <p>Code Snippet:</p>
  
  <pre><code>var container = new AnimatedContainer(
    duration: const Duration(milliseconds: 200),
    width: 50.0,
    height: 50.0,
    // selected is a bool that will be toggled
    transform: selected ? new Matrix4.identity() : new Matrix4.identity().scaled(0.2,0.2),
    decoration: new BoxDecoration(
      shape: BoxShape.circle,
      backgroundColor: Colors.blue[500],
    ),
    child: new Center(
      child: new Icon(
        Icons.check,
        color: Colors.white,
      ),
    )
  );
  </code></pre>
  
  <p>Any insight on what's going on?</p>