title: How can you "center crop" a Widget in Flutter?
body: <p>I have a <a href="https://github.com/flutter/plugins/tree/master/packages/video_player" rel="noreferrer">VideoPlayer</a> widget that needs to be fullscreen and also fit the aspect ratio of the source video. In order to achieve that, I'll need to chop off either the top/bottom or the left/right of the video. </p>
  
  <p>I had hoped the following might achieve this, but I think I must be using <code>FittedBox</code> incorrectly as it causes my <code>VideoPlayer</code> to disappear:</p>
  
  <pre class="lang-dart prettyprint-override"><code>final Size size = controller.value.size;
  return new FittedBox(
    fit: BoxFit.cover,
    child: new AspectRatio(
      aspectRatio: size.width / size.height,
      child: new VideoPlayer(controller)
    ),
  );
  </code></pre>
  
  <p>Can anyone help me solve this? </p>