Skip to content

Commit 50fe0fc

Browse files
authored
FontFeature diagrams (#131)
* FontFeature diagrams Adds a bunch of samples for FontFeature. * new assets * Update pubspec.yaml
1 parent b456285 commit 50fe0fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1502
-4
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ specially-crafted graphics.
77
Assets committed to this repo and pushed to GitHub are immediately
88
available for linking and reference.
99

10+
1011
## URL structure
1112

1213
Reference the assets with this URL structure:
@@ -20,6 +21,7 @@ material library would go in the `assets/material/` directory and be at
2021
All asset files should be under the `assets` directory in an appropriate
2122
subdirectory.
2223

24+
2325
## Generation
2426

2527
Images must be code-generated.
@@ -38,7 +40,7 @@ bin/generate.sh -c cupertino,material
3840
bin/generate.sh -n basic_material_app,blend_mode
3941
```
4042

41-
`bin/generate.sh -h` lists available arguments.
43+
`bin/generate.sh --help` lists available arguments.
4244

4345
### Prerequisites
4446

@@ -57,6 +59,7 @@ in a directory in the `PATH` environment variable. (e.g. PATH=~/<path_to_flutter
5759
When using an Android device, be sure that the `adb` command is the same as the one running
5860
as a server (which is often started by your IDE, so use the same `adb` the IDE is running).
5961

62+
6063
## Optimization
6164

6265
Please consider optimization tools for assets.
@@ -73,6 +76,20 @@ the `assets/tests` directory should not be optimized.
7376
The automatic generation tool will automatically apply optimization to
7477
the assets it generates.
7578

79+
80+
## Creating new diagrams
81+
82+
To create a new diagram:
83+
84+
1. Add a new file to `packages/diagrams/lib/src/`, and put the tests in there.
85+
86+
2. Export that file from `packages/diagrams/lib/diagrams.dart`.
87+
88+
3. Add your new class to the list in `assets-for-api-docs/utils/diagram_generator/lib/main.dart`.
89+
90+
4. Run `generate.sh --name xxx` where 'xxx' is the name of your diagram.
91+
92+
7693
## Origin of third-party content
7794

7895
* `/assets/videos/bee.mp4`: CC0 Creative Commons, from [https://pixabay.com/en/videos/honey-bee-insect-bee-flower-flying-211/](https://pixabay.com/en/videos/honey-bee-insect-bee-flower-flying-211/)
7.59 KB
Loading
4.99 KB
Loading
9.21 KB
Loading
6.22 KB
Loading
7.18 KB
Loading
6.58 KB
Loading
5.11 KB
Loading
14.9 KB
Loading
7.51 KB
Loading

0 commit comments

Comments
 (0)