flutter / flutter/devtools

Allow more flexible input for flex values

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

描述

Currently the flex inputs in the Devtools UI only allows flex value inputs for `null` and `0` through `5`.
A fix is being put in that will show flex values >5 to show in the UI, but that will only be if the user has put in that flex value programmatically.

After the fix is put in, the flex input will look as follows, if a value of 70 is put in the flex box, and then user clicks on it.
Before Click
![Screen Shot 2022-05-02 at 1 50 40 PM](https://user-images.githubusercontent.com/1386322/166298770-474d5287-7371-4bc3-baa0-de992cbf2648.png)
After Click
![Screen Shot 2022-05-02 at 1 50 48 PM](https://user-images.githubusercontent.com/1386322/166298802-ce3282c1-ee0b-4a36-a984-7b4d6ec4df0a.png)

This approach still has issues:
- having such a long like is unwieldy from a UI perspective
- the user has no way to enter numbers > 5 from the UI.

To improve this experience we should find a way to support more diverse input and a UI experience.
Potentially we could have a text input, that would allow us to enter an integer, or null.

贡献指南

打开贡献指南

调研方向

从 Devtools UI flex input 开始,复现 null 和 0 到 5 之间的值的当前行为,包括以编程方式输入的大于 5 的值。在更改之前,先定义支持的输入和交互;完成标准是用户可以通过 UI 输入更大范围的 flex 值,同时显示的长值不会变得难以处理。

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

评估

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

把新 issue 发到你的邮箱

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