Flutter Layout Widget之AspectRatio

AspectRatio 是一個widget,將子widget的大小指定爲某個特定的寬高比 定義 const AspectRatio({ Key key, @required this.aspectRatio, Widget child }) aspectRatio → double 寬高比 new Container( color: Colors.grey,
相關文章
相關標籤/搜索