一尘不染

FluttercrossAxisAlignment与mainAxisAlignment

flutter

我对crossAxisAlignment和感到困惑mainAxisAlignment。谁能用简单的话解释一下?


阅读 329

收藏
2020-08-13

共1个答案

一尘不染

For Row:

mainAxisAlignment=水平轴
crossAxisAlignment=垂直轴


For Column:

mainAxisAlignment=垂直轴
crossAxisAlignment=水平轴

2020-08-13