Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ specially-crafted graphics.
Assets committed to this repo and pushed to GitHub are immediately
available for linking and reference.


## URL structure

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


## Generation

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

`bin/generate.sh -h` lists available arguments.
`bin/generate.sh --help` lists available arguments.

### Prerequisites

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


## Optimization

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


## Creating new diagrams

To create a new diagram:

1. Add a new file to `packages/diagrams/lib/src/`, and put the tests in there.

2. Export that file from `packages/diagrams/lib/diagrams.dart`.

3. Add your new class to the list in `assets-for-api-docs/utils/diagram_generator/lib/main.dart`.

4. Run `generate.sh --name xxx` where 'xxx' is the name of your diagram.


## Origin of third-party content

* `/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/)
Expand Down
Binary file added assets/dart-ui/font_feature_aalt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_afrc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_calt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_case.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_cvXX.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_dnom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_frac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_historical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_lnum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_locl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_nalt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_numr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_onum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_ordn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_pnum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_salt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_sinf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_ssXX_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_ssXX_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_subs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_sups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_swsh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_tnum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dart-ui/font_feature_zero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions bin/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
REPO_DIR="$(dirname "$SCRIPT_DIR")"

# Dart needs to be in the path already...
(cd ${REPO_DIR}/bin; pub get)
dart --no-sound-null-safety "${REPO_DIR}/bin/generate.dart" "$@"
1 change: 1 addition & 0 deletions packages/diagrams/lib/diagrams.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export 'src/expanded.dart';
export 'src/flat_button.dart';
export 'src/floating_action_button.dart';
export 'src/floating_action_button_location.dart';
export 'src/font_feature.dart';
export 'src/form.dart';
export 'src/gesture_detector.dart';
export 'src/grid_view.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/diagrams/lib/src/diagram_step.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class DiagramStep<T extends DiagramMetadata> {
Future<List<File>> generateDiagrams({List<String> onlyGenerate = const <String>[]}) async {
final List<File> files = <File>[];
for (final T diagram in await diagrams) {
if (onlyGenerate.isNotEmpty && !onlyGenerate.contains(diagram.name)) {
if (onlyGenerate.isNotEmpty && !onlyGenerate.any((String name) => diagram.name.contains(name))) {
continue;
}
files.add(await generateDiagram(diagram));
Expand Down
Loading