devtools
devtools copied to clipboard
Not clear how to find upstream TextStyle provenance from a Text in the widget inspector
I'm fixing https://github.com/flutter/flutter/issues/60013. Using DevTools to look at where the TextStyle is coming from.

Not clear from the UI how to do it. The dependencies attribute look promising but it doesn't expand into anything.
We can give you a debugger view of what the values of DefaultTextStyle and MediaQuery are. Would that be helpful or do you need to know what line they were created on? We don't currently track object allocation sites for DefaultTextStyle but we do for MediaQuery as it is a widget.
Just having the resolved value is already helpful.
Otherwise, if we were to invest, having a generic inherited widget tracing mechanism definitely makes more sense than a one off solution for DefaultTextStyle.
Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll reopen the case if you do. Thanks for your contribution!