mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Trivial typo fixes to snippets documentation (#63436)
This commit is contained in:
parent
714dd2febc
commit
c7ebb2b75f
@ -19,7 +19,7 @@ in the source code into API documentation, as seen on https://api.flutter.dev/.
|
|||||||
There are three kinds of code blocks.
|
There are three kinds of code blocks.
|
||||||
|
|
||||||
* A `snippet`, which is a more or less context-free code snippet that we
|
* A `snippet`, which is a more or less context-free code snippet that we
|
||||||
magically determine how to analyze, and
|
magically determine how to analyze.
|
||||||
|
|
||||||
* A `dartpad` sample, which gets placed into a full-fledged application, and can
|
* A `dartpad` sample, which gets placed into a full-fledged application, and can
|
||||||
be executed inline in the documentation on the web page using
|
be executed inline in the documentation on the web page using
|
||||||
@ -176,7 +176,7 @@ code blocks and descriptions are interpolated.
|
|||||||
|
|
||||||
There is currently one skeleton for
|
There is currently one skeleton for
|
||||||
[application](config/skeletons/sample.html) samples, one for
|
[application](config/skeletons/sample.html) samples, one for
|
||||||
[dartpad](config/skeletons/dartpad-sample.html) and one for
|
[dartpad](config/skeletons/dartpad-sample.html), and one for
|
||||||
[snippet](config/skeletons/snippet.html) code samples, but there could be more.
|
[snippet](config/skeletons/snippet.html) code samples, but there could be more.
|
||||||
|
|
||||||
Skeletons use mustache notation (e.g. `{{code}}`) to mark where components will
|
Skeletons use mustache notation (e.g. `{{code}}`) to mark where components will
|
||||||
@ -235,4 +235,4 @@ For example, the file `sample.src.widgets.animated_list.52.dart` points to the s
|
|||||||
in `packages/flutter/src/widgets/animated_list.dart` at line 52. You can then take the
|
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
|
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
|
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.
|
until the features make it into the `dev` branch.
|
||||||
|
Loading…
Reference in New Issue
Block a user