Center简介

将孩子容器居中显示在自身内部,并可以根据孩子容器自动调整自身大小

Center属性概要

  1. Center({
  2. Key key,
  3. double widthFactor,// Center宽度是child的几倍
  4. double heightFactor,// Center高度是child的几倍
  5. Widget child// 需要居中显示的孩子容器
  6. })