flutter / flutter/devtools

Support BuiltValue in the inspector

Open
#3,113 1 comment 0 reactions 0 assignees View on GitHub
P3 screen: debugger screen: inspector
Dominant language
Dart
Stars
1.7k
Forks
404
Avg merge
6d 17h
Merged PRs (30d)
18

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.