flutter/dev/tools
Greg Spencer 262f12b4a9
Remove remaining "## Sample code" segments, and fix the snippet generator. (#27793)
This converts all remaining "## Sample code" segments into snippets, and fixes
the snippet generator to handle multiple snippets in the same dartdoc block
properly.

I also generated, compiled, and ran each of the existing application samples,
and fixed them up to be more useful and/or just run without errors.

This PR fixes these problems with examples:

1. Switching tabs in a snippet now works if there is more than one snippet in
   a single dartdoc block.
2. Generation of snippet code now works if there is more than one snippet.
3. Contrast of text and links in the code sample block has been improved to
   recommended levels.
4. Added five new snippet templates, including a "freeform" template to make
   it possible to show examples that need to change the app instantiation.
5. Fixed several examples to run properly, a couple by adding the "Scaffold"
   widget to the template, a couple by just fixing their code.
6. Fixed visual look of some of the samples when they run by placing many
   samples inside of a Scaffold.
7. In order to make it easier to run locally, changed the sample analyzer to
   remove the contents of the supplied temp directory before running, since
   having files that hang around is problematic (only a problem when running
   locally with the `--temp` argument).
8. Added a `SampleCheckerException` class, and handle sample checking
   exceptions more gracefully.
9. Deprecated the old "## Sample code" designation, and added enforcement for
   the deprecation.
10. Removed unnecessary `new` from templates (although they never appeared in
   the samples thanks to dartfmt, but still).

Fixes #26398
Fixes #27411
2019-02-15 07:48:49 -08:00
..
gen_keycodes Remove remaining "## Sample code" segments, and fix the snippet generator. (#27793) 2019-02-15 07:48:49 -08:00
lib add missing type parameter on methods (#22096) 2018-10-01 21:29:08 +02:00
vitool Add module checking (#27122) 2019-01-29 12:26:48 -08:00
dartdoc.dart Update dartdoc to 0.28.1+1 and add parameters for source-code linking (#27511) 2019-02-04 14:40:22 -08:00
gen_date_localizations.dart remove ignore_for_file lints (#26545) 2019-01-15 08:42:47 -08:00
gen_localizations.dart scriptCode support in gen_localizations and strip scriptCodes for date l10n. (#23853) 2018-11-08 10:43:40 -08:00
java_and_objc_doc.dart Update packages (#27046) 2019-01-24 16:02:45 -08:00
localizations_utils.dart scriptCode support in gen_localizations and strip scriptCodes for date l10n. (#23853) 2018-11-08 10:43:40 -08:00
localizations_validator.dart scriptCode support in gen_localizations and strip scriptCodes for date l10n. (#23853) 2018-11-08 10:43:40 -08:00
mega_gallery.dart add an analysis_options excludes for the build/ dir (#23653) 2018-11-06 07:59:33 -08:00
pubspec.yaml Add module checking (#27122) 2019-01-29 12:26:48 -08:00
repackage_gradle_wrapper.sh Make artifacts URLs configurable. (#13380) 2017-12-07 16:30:23 +01:00
update_icons.dart add missing type parameter on methods (#22096) 2018-10-01 21:29:08 +02:00