flutter / flutter/devtools

Support BuiltValue in the inspector

Aperta
#3,113 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
P3 screen: debugger screen: inspector
Lingua principale
Dart
Stelle
1.7k
Fork
404
Merge medio
6g 17h
PR unite (30g)
18

Descrizione

May applications particularly in g3 use BuiltValue heavily in their widget code. BuiltValue objects are not expandable which is confusing as they look a lot like Diagnosticable values that are.

The toString representation for Diagnosticable is lso slightly confusingly inconsistent with the one used by Flutter.
Extend the Inspector and Debugger views in DevTools so that BuiltValue is always expandable.

Bonus: make BuiltValue editable by understanding the builder patters for built value.

Fyi @davidmorgan.
One option would be to support BuiltValue types that extend Diagnosticable. Another option is to put the logical all in DevTools.

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.