当我创建一个下拉按钮小部件时,我看到了这样的错误: RenderFlex在右边被无限像素溢出。,我没有在应用程序上看到任何DropDownButton,而是在控制台上看到了错误消息。将文件同步到为x86构建的。在5,558 in中重新启动应用程序。flutter (15333): The nearest ancestor providing an unbounded width constraint is:
I
This is usually caused by the contents being too big for the RenderFlex.
不明白为什么MediaQuery或设备不能防止溢出吗?第一个容器总是在安卓手机或平板电脑上溢出81像素,现在没有iPhone或iPad测试。根据我从其他文章中所读到的,使用黄色和黑色溢出可以通过在SingleChildScrollView中包装来纠正溢出,