AspectRatio

A widget that attempts to size the child to a specific aspect ratio.

Example

Container(
  height: 200,
  child: new AspectRatio(
    aspectRatio: 4 / 3,
    child: new Container(
      color: Colors.red,
    ),
  ),
)

Related Links