Unverified Commit af9b6a6e authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

Update snippets README.md to include more detail (#57152)

Just adding some more details to the snippets README.md file about testing snippets.
parent b3434459
......@@ -225,4 +225,14 @@ Instead, you can run the analysis locally with this command from the Flutter roo
TMPDIR=/tmp bin/cache/dart-sdk/bin/dart dev/bots/analyze-sample-code.dart --temp=samples
```
This will analyze the samples, and leave the output in /tmp/samples
This will analyze the samples, and leave the generated files in `/tmp/samples`
You can find the sample you are working on in `/tmp/samples`. It is named using the
path to the file it is in, and the line of the file that the `{@tool ...}` directive
is on.
For example, the file `sample.src.widgets.animated_list.52.dart` points to the sample
in `packages/flutter/src/widgets/animated_list.dart` at line 52. You can then take the
contents of that file, and paste it into [Dartpad](https://dartpad.dev) and see if it
works. If the sample relies on new features that have just landed, it may not work
until the features make it into the `dev` branch.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment