`
child: Wrap(
alignment: WrapAlignment.spaceAround,
children: [
const SizedBox(height: 16),
_EmailInput(),
const SizedBox(height: 8),
_ForgotPasswordButton()
],
),
`使用給定的設定,我應該怎么做才能在頁面底部放置忘記密碼按鈕,例如: https ://drive.google.com/file/d/1Iyqy8u4gwWXaRj6SLey3qzgvdICDor2Z/view?usp=sharing
我嘗試將它們包裝在容器和列中,但它不起作用
uj5u.com熱心網友回復:
將您的小部件放在一個列中,并將您的 _EmailInput() 包裝在 Expanded() 中。這將使您的 _EmailInput() 擴展以填充沿主軸的可用空間并將 _ForgetPasswordButton() 推到底部
Column(
children: [
Expanded(
child: Center(
child: _EmailInput(),
)
),
_ForgotPasswordButton()
],
)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/523344.html
標籤:扑镖结盟
