AspectRatio简介

将子部件大小指定为某个特定的宽高比

AspectRatio属性概要

  1. AspectRatio({
  2. Key key,
  3. @required this.aspectRatio,// 宽高比
  4. Widget child,// 需要指定宽高比的子部件
  5. })