invertase / dart_custom_lint

💡 Easily write powerful Dart & Flutter lint rules for your projects or for users of your packages.
https://pub.dev/packages/custom_lint
Apache License 2.0
283 stars 61 forks source link

Add a "Render AstNodes/Elements" toggle #55

Open rrousselGit opened 1 year ago

rrousselGit commented 1 year ago

For debugging and learning purpose. This can be similar to "Debug layout/painting"

https://user-images.githubusercontent.com/20165741/206854718-11d2520a-2377-4e4d-92ba-0493b8ce975c.mov

lsaudon commented 1 year ago

Hi,

I made a command line that extracts the AST structure from a dart file in JSON. https://pub.dev/packages/ast_explorer_cli/example#example-1

I could have seen a solution equivalent to flutter outline.

image