title: Flutter - Animate change on height when child of container renders
body: <p>I'm trying to recreate something like <code>ExpansionTile</code> but in a <code>Card</code>. When I click the card, its child renders and the card changes its height, so I want to animate that change.</p>
  
  <p>I tried using <code>AnimatedContainer</code> and <code>GlobalKey</code> to know the final size of the card with its child rendered and then set the new height to <code>AnimatedContainer</code> but that didn't work.</p>