flutter / flutter/devtools

Track down why sectionSpacing needs to be scaled

未关闭
#3,306 1 条评论 0 个 reaction 已指派 1 人 已被 @kenzieschmoll 认领 在 GitHub 查看
cleanup fix it friday flame_chart P3
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

sectionSpacing in flame_chart needs to be scaled otherwise negative padding values are generated.
Track down what the bug in the current logic is so that this can be avoided.

This is surprising to me that this needs to be scaled at all. This is supposed to be the vertical spacing between sections of the flame chart, and should be independent of the size of the rows (which would be affected by font size).

rowOffsetForTopPadding is the number of rows we want to offset for padding at the top of the flame chart. For example, we need more rows of padding in the timeline flame chart that has the timestamp grid at the top than we need in the Cpu profiler flame chart, which doesn't have anything to account for at the top.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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