问题标签 [flutter-renderflex-error]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
flutter - 小部件在我的屏幕右侧溢出(RenderFlex 错误)
我似乎无法修复此错误以挽救我的生命。我尝试过使用 Expanded、Flexible、从父小部件提供大小限制等。请救救我。
错误信息:
“有问题的具体 RenderFlex 是:RenderFlex#d88fa relayoutBoundary=up5 OVERFLOWING: 需要合成创建者:Row ← IntrinsicHeight ← _InputPadding ← ToggleButtons ← ToggleSort ← Container ← Column ← Column ← _SingleChildViewport ← IgnorePointer-[GlobalKey#950e0] ← Semantics ← Listener ⋯ parentData: (可以使用大小) 约束: BoxConstraints(0.0<=w<=55.0, h=37.0) size: Size(55.0, 37.0) direction: 水平 mainAxisAlignment: 开始 mainAxisSize: min crossAxisAlignment: 拉伸 textDirection: ltr verticalDirection: down "
“抛出了另一个异常:RenderFlex 在右侧溢出了 293 个像素。”
此函数构建了混乱的 UI 部分
这是使用它的地方
切换按钮类(有状态小部件)