flutter / flutter/devtools

Property editing of `CrossAxisAlignment` doesn't work

未关闭
#8,078 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
inspector-2.0-polish P2 screen: inspector
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

Modifying `CrossAxisAlignment` for text on Flutter sample app throws error:

```
Another exception was thrown: Vertical RenderFlex with CrossAxisAlignment.end has a null textDirection, so the alignment cannot be resolved.
Another exception was thrown: Vertical RenderFlex with CrossAxisAlignment.start has a null textDirection, so the alignment cannot be
resolved.
```

![property_editing_Broken_big](https://github.com/user-attachments/assets/ff7b242a-3dd0-4503-b5ef-41badd3ee1e5)

贡献指南

打开贡献指南

调研方向

首先在 Flutter sample app 中复现该问题,并检查 CrossAxisAlignment 的属性编辑路径。完成标准是更改对齐方式不再抛出 null textDirection 错误,并且示例文本会以所选对齐方式渲染。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart
领域
devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。