flutter的Column 的使用技巧

//让子控件,水平居中右对齐
Column (
     crossAxisAlignment:  CrossAxisAlignment.start
)
//让子控件,水平居中左对齐
Column (
     crossAxisAlignment:  CrossAxisAlignment.end
)
//让子控件,水平居中对齐
Column (
     crossAxisAlignment:  CrossAxisAlignment.center
)
//让子控件,水平占满父控件空间
Column (
     crossAxisAlignment:  CrossAxisAlignment.stretch
)

CrossAxisAlignment.stretch模式,占满水平空间

CrossAxisAlignment.center
flutter的Column 的使用技巧_第1张图片

你可能感兴趣的:(flutter开发)