flutter / flutter/devtools

Bug when hovering on children inside hovercard

Đang mở
#5,928 1 bình luận 0 reaction 1 người được giao Được @CoderDake nhận Xem trên GitHub
fix it friday P2
Ngôn ngữ chính
Dart
Star
1.7k
Fork
404
Merge trung bình
6 ngày 17 giờ
Pull request đã merge (30 ngày)
18

Mô tả

![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.
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.