简体   繁体   English

在 Flutter 中展开的 ListView

[英]ListView with Expanded in Flutter

I want to create interface with fixed size widgets and other variables based on screen size.我想根据屏幕尺寸创建具有固定尺寸小部件和其他变量的界面。

On large screens, where all the widgets fit smoothly, I want the buttons to be placed on the bottom side and the rest in the center of the remaining space.在大屏幕上,所有小部件都可以顺利安装,我希望将按钮放在底部,其余部分放在剩余空间的中心。

On smaller screens, where the widgets don't fit one below the other, I want it to be scrollable vertically.在较小的屏幕上,小部件不适合一个在另一个下方,我希望它可以垂直滚动。

Note: The size of the image shown below must be a minimum of 100 pixels and a maximum of half the width of the screen.注意:下面显示的图像大小必须至少为 100 像素,最大为屏幕宽度的一半。

expected result预期结果

I want to create interface with fixed size widgets and other variables based on screen size.我想根据屏幕尺寸创建具有固定尺寸小部件和其他变量的界面。

On large screens, where all the widgets fit smoothly, I want the buttons to be placed on the bottom side and the rest in the center of the remaining space.在大屏幕上,所有小部件都可以顺利安装,我希望将按钮放在底部,其余部分放在剩余空间的中心。

On smaller screens, where the widgets don't fit one below the other, I want it to be scrollable vertically.在较小的屏幕上,小部件不适合一个在另一个下方,我希望它可以垂直滚动。

Note: The size of the image shown below must be a minimum of 100 pixels and a maximum of half the width of the screen.注意:下面显示的图像大小必须至少为 100 像素,最大为屏幕宽度的一半。

expected result预期结果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM