devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Not clear how to find upstream TextStyle provenance from a Text in the widget inspector

Open xster opened this issue 5 years ago • 3 comments

I'm fixing https://github.com/flutter/flutter/issues/60013. Using DevTools to look at where the TextStyle is coming from.

Screen Shot 2020-08-11 at 9 57 38 PM

Not clear from the UI how to do it. The dependencies attribute look promising but it doesn't expand into anything.

xster avatar Aug 12 '20 04:08 xster

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.

jacob314 avatar Aug 24 '20 17:08 jacob314

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.

xster avatar Aug 24 '20 17:08 xster

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!

github-actions[bot] avatar May 31 '23 00:05 github-actions[bot]