fix(ui): 弹框富内容加高度约束,长文案恢复滚动
This commit is contained in:
1 parent
9983d42015
commit
78f464f2a4
1 file changed
+4
-2
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user