fix(ui): 弹框富内容加高度约束,长文案恢复滚动

This commit is contained in:
Zhou Weidong authored and trae-solo-agent committed 2026-10-28 18:47:51 +08:00
1 parent 9983d42015
commit 78f464f2a4
1 file changed
+4 -2
+4 -2
View File
@@ -96,8 +96,10 @@ class AppGlowDialog extends StatelessWidget {
],
if (content != null)
Text(content!, style: bodyStyle)
else
?contentChild,
else if (contentChild != null)
// 必须给富内容一个有界高度,否则内部 SingleChildScrollView 拿到无界
// 约束会直接撑高整块内容(长文本小屏下溢出且无法滚动)。
Flexible(child: contentChild!),
if (actions != null && actions!.isNotEmpty) ...[
const SizedBox(height: 18),
Row(