flutter / flutter/devtools

Support showing constraints information besides the current size of a widget

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

描述

## Problem

I use the code in https://docs.flutter.dev/ui/layout/constraints to demonstrate my issue.

In the examples below, it is not possible to know immediately the constraints that is applied on some widgets.
To find that information, we need to find in a nearest ancestor that provides the **Render object** tab or the widget that has constraints property.
It would be nice if by selecting any widget, we can answer immediately the question: "What is the constraints this widget received from its parent?"

Image

Image

## Expectation

I would expect something similar to **Flex explorer** tab:

Image

贡献指南

打开贡献指南

调研方向

首先在 DevTools 中复现 Flutter constraints 文档中的示例,然后检查现有的 Flex explorer 标签页,将其作为最接近的既定先例。当选择任意 widget 时,除了显示其当前大小,还能显示它从 parent 接收到的 constraints,即表示工作完成。

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

评估

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

把新 issue 发到你的邮箱

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