flutter / flutter/devtools

Use `RemoteDiagnosticNode.description` instead of `RemoteDiagnosticNode.widgetRuntimeType`

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

描述

The JSON response for the widget tree currently contains a field titled `description` and a field titled `widgetRuntimeType`.

However, the `widgetRuntimeType` can be computed from the description, which is what we are currently doing in the Flutter Widget Inspector.

Examples:

Widget runtime type: `RootWidget`
description: `[root]`

Widget runtime type: `_InkFeatures`
description: `_InkFeatures-[GlobalKey#af894 ink renderer]`

贡献指南

打开贡献指南

调研方向

从 Flutter Widget Inspector 中当前根据 RemoteDiagnosticNode.description 计算 widget 运行时类型的代码开始,追踪 JSON 字段的使用位置。更新 consumer,使其使用 description 而不是 widgetRuntimeType,然后验证显示的 widget 标签仍与此 issue 中的示例一致。

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

评估

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

把新 issue 发到你的邮箱

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