Use `RemoteDiagnosticNode.description` instead of `RemoteDiagnosticNode.widgetRuntimeType`
- Vorherrschende Sprache
- Dart
- Sterne
- 1.7k
- Forks
- 404
- Ø Merge
- 6 T. 17 Std.
- Gemergte PRs (30 T.)
- 18
Beschreibung
The JSON response for the widget tree currently contains a field titled `description` and a field titled `widgetRuntimeType`.
However, the `widgetRuntimeType` can be computed from the description, which is what we are currently doing in the Flutter Widget Inspector.
Examples:
Widget runtime type: `RootWidget`
description: `[root]`
Widget runtime type: `_InkFeatures`
description: `_InkFeatures-[GlobalKey#af894 ink renderer]`
Beitragsleitfaden
Rechercherichtung
Start in the Flutter Widget Inspector code that currently computes the widget runtime type from RemoteDiagnosticNode.description, and trace where the JSON fields are consumed. Update the consumer to use description rather than widgetRuntimeType, then verify that the displayed widget labels still match the examples in this issue.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- dart, flutter
- Bereich
- devtools
- Issue-Typ
- Refactoring
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100