flutter / flutter/devtools

Not clear which non-widget data types get expanded and which don't

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

描述

![Screen Shot 2020-10-13 at 1 05 23 PM](https://user-images.githubusercontent.com/156888/95910338-c5178900-0d54-11eb-8937-5e4aec2073f1.png)

In this example, `Theme` has a `ThemeData`. It's not clear to me whether there's just a whitelisted handpicked set of "data" types that expands into its constituents and why `ThemeData` is opaque but `TextStyle` under `actionTextStyle` is expandable.

Also a bit inconsistent that `Theme` has an opaque `ThemeData` (which follows the real tree composition) but the `CupertinoTheme`'s `CupertinoThemeData` is somehow inlined into the `CupertinoTheme` node directly. Same with the `IconTheme` where the `IconThemeData` is inlined.

贡献指南

打开贡献指南

调研方向

首先定位决定如何展开对象节点和数据节点的 widget inspector 代码。将 ThemeData、TextStyle、CupertinoThemeData 和 IconThemeData 的处理方式与 issue 中所示的行为进行比较。完成后应能明确展开规则,并解释或解决处理不一致的问题。

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

评估

技术栈
dart, flutter
领域
devtools
Issue 类型
文档
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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