flutter / flutter/devtools

Support editing textScaleFactor, brightness, etc. in devtools

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

描述

The ability to switch between dark/light mode, adjust text scale, switch target platform (iOS, Android, etc.) would allow devs to quickly verify that their widget functions as expected in a variety of environments.

To illustrate the benefit this would provide, the current flow for switching between dark/light mode on an iOS simulator is:
- Open the Settings app
- Open the Developer page
- Toggle "Dark appearance"

Even worse, changing text scale:
- Open the Settings app
- Open the Accessibility page
- Open the Display & Text Size page
- Open the Larger Text page
- Drag the slider up or down to adjust text scale

Having a way to do this without so many clicks and without having to leave the app would be phenomenal.

https://pub.dev/packages/device_preview demonstrates a version of the functionality that would be great to have as part of DevTools.

贡献指南

打开贡献指南

调研方向

issue 中没有指定源文件或测试。首先检查用于 runtime 或设备配置的 DevTools 入口点,并与链接的 device_preview package 进行比较;定义应如何暴露深色/浅色模式、文本缩放、亮度和目标平台。完成的标准是,开发者可以在不离开应用的情况下通过 DevTools 更改这些环境设置。

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

评估

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

把新 issue 发到你的邮箱

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