flutter / flutter/devtools

Use `RemoteDiagnosticNode.description` instead of `RemoteDiagnosticNode.widgetRuntimeType`

Offen
#8,556 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
inspector-2.0-polish object inspector P2
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

Beitragsleitfaden öffnen

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

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.