flutter / flutter/devtools

Not clear which non-widget data types get expanded and which don't

Offen
#2,427 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
inspector-2.0-cleanup P3 screen: inspector
Vorherrschende Sprache
Dart
Sterne
1.7k
Forks
404
Ø Merge
6 T. 17 Std.
Gemergte PRs (30 T.)
18

Beschreibung

![Screen Shot 2020-10-13 at 1 05 23 PM](https://user-images.githubusercontent.com/156888/95910338-c5178900-0d54-11eb-8937-5e4aec2073f1.png)

In this example, `Theme` has a `ThemeData`. It's not clear to me whether there's just a whitelisted handpicked set of "data" types that expands into its constituents and why `ThemeData` is opaque but `TextStyle` under `actionTextStyle` is expandable.

Also a bit inconsistent that `Theme` has an opaque `ThemeData` (which follows the real tree composition) but the `CupertinoTheme`'s `CupertinoThemeData` is somehow inlined into the `CupertinoTheme` node directly. Same with the `IconTheme` where the `IconThemeData` is inlined.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the widget inspector code that decides how object and data nodes are expanded. Compare the handling of ThemeData, TextStyle, CupertinoThemeData, and IconThemeData against the behavior shown in the issue. Done should clarify the expansion rule and explain or resolve the inconsistent treatment.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
dart, flutter
Bereich
devtools
Issue-Typ
Dokumentation
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

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