flutter / flutter/devtools

Bug when hovering on children inside hovercard

Aperta
#5,928 1 commento 0 reazioni 1 assegnatario Rivendicata da @CoderDake Vedi su GitHub
fix it friday P2
Lingua principale
Dart
Stelle
1.7k
Fork
404
Merge medio
6g 17h
PR unite (30g)
18

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.