flutter / flutter/devtools

Bug when hovering on children inside hovercard

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

描述

![Screenshot 2023-06-19 at 4 50 16 PM](https://github.com/flutter/devtools/assets/1386322/a78e6f8c-46aa-4ee5-b783-c9dd025e73d0)
Reproduction
- hover over any element element
- hover over `_parent` or any of the other fields below
- bug should occur

```
flutter: [ERROR]: [FlutterError]: Cannot hit test a render box that has never been laid out.
The hitTest() method was called on this RenderBox: _RenderDeferredLayoutBox#e536c NEEDS-LAYOUT NEEDS-PAINT:
needs compositing
creator: _DeferredLayout ← _OverlayPortal ← OverlayPortal ← Tooltip ← DevToolsTooltip ← DisplayProvider ← Expanded ← Row ← Padding ← Container ← _TreeViewItem ← RepaintBoundary ← ⋯
parentData: not positioned; offset=Offset(0.0, 0.0)
constraints: MISSING
size: MISSING
Unfortunately, this object's geometry is not known at this time, probably because it has never been laid out. This means it cannot be accurately hit-tested.
If you are trying to perform a hit test during the layout phase itself, make sure you only hit test nodes that have completed layout (e.g. the node's children, after their layout() method has been called).
Another exception was thrown: Cannot hit test a render box that has never been laid out.
Another exception was thrown: 'package:flutter/src/rendering/mouse_tracker.dart': Failed assertion: line 205 pos 12: '!_debugDuringDeviceUpdate': is not true.
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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