Flutter基础widgets教程Center篇

169 阅读1分钟

1 Center

将其子widget居中显示在自身内部的widget

2 构造函数

Center({ 
    Key key, 
    double widthFactor, 
    double heightFactor, 
    Widget child 
})

3 常用属性

3.1 child:子控件

child: Text('中间子组件'),

结束

获取更多优质内容,请关注【青年码农】