gpt4 book ai didi

android - CrossAxisAlignment.center 从不在 Column 中工作

转载 作者:行者123 更新时间:2023-11-29 22:52:16 26 4
gpt4 key购买 nike

CrossAxisAlignment.center 从不在 Column 中工作。

我的代码:

body: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text('Hello word')
],
),

最佳答案

尝试用 SizedBox.expand(

包裹列
SizedBox.expand((
child: Column(
children: <Widget>[ Text('Hello word') ],
),
)

关于android - CrossAxisAlignment.center 从不在 Column 中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57780234/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com