Specify that widget rebuilds is only available when running in debug-mode
还没有人认领这个 Issue。
评估
调研方向
从性能面板中渲染已禁用的 widget 重建复选框和 "To see widget rebuilds" 文本的代码开始;跟踪它如何处理 trackRebuildDirtyWidgets service extension,以及 packages/flutter/lib/src/widgets/debug.dart 中描述的 debugOnRebuildDirtyWidget 限制。完成的标准是:profile-mode 帧在没有复选框的情况下显示指定的不可用消息,同时 debug-mode 行为仍然可用。
由索引模型根据 Issue 内容生成。
描述
Currently when you run your app in profile-mode, the performance panel shows a disabled checkbox that makes it seem like it should be possible to "count widget builds" (see screenshot below)
In actuality, "count widget builds" relies on the trackRebuildDirtyWidgets service extension, which uses debugOnRebuildDirtyWidget. This is only available in debug-mode: https://github.com/flutter/flutter/blob/f9e809913240552c391bf31b1cfdbdf410224d8c/packages/flutter/lib/src/widgets/debug.dart#L59
Instead of "To see widget rebuilds for Flutter frames, enable CountWidgetRebuilds", we should remove the checkbox and update the text to say "Rebuild information not available for this frame. Widget rebuild counts are only available when running an app in debug-mode."
- 主要语言
- Dart
- 星标
- 1.7k
- 派生
- 405
- 平均合并
- 4 天 23 小时
- 30 天内合并 PR
- 12
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
flutter/devtools 的其他 Issue
-
cleanup P1
难度 2/5 1-3 小时 新手友好度 85/100
-
a: quality cost: low P2
难度 2/5 1-3 小时 新手友好度 68/100
-
contributions welcome cross-screen inspector-2.0-polish P2
难度 2/5 1-3 小时 新手友好度 65/100
-
cross-screen P3
难度 2/5 1-3 小时 新手友好度 68/100
-
documentation good first issue P2
难度 1/5 1 小时以内 新手友好度 88/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
code quality good first issue
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 78/100
Suwayomi/Suwayomi-Tsumiru#479 ·
-
Build Failure: agora_rtc_engine compiled against android-31 while dependencies require android-34+ 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 92/100
conceptadev/noir#95 ·