Skip to content

Commit 4471a49

Browse files
committed
Update README with vector_graphics_compiler support info
1 parent dca5839 commit 4471a49

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ flutter:
204204
- assets/images/
205205
- assets/images/chip3/chip.jpg
206206
- assets/images/chip4/chip.jpg
207-
- assets/images/icons/paint.svg
207+
- path: assets/images/icons/paint.svg
208+
- path: assets/images/icons/transformed.svg
209+
transformers:
210+
- package: vector_graphics_compiler
208211
- assets/images/icons/[email protected]
209212
- assets/json/fruits.json
210213
- assets/flare/Penguin.flr
@@ -380,7 +383,7 @@ flutter_gen:
380383
image: false
381384
```
382385

383-
If you are using SVG images with [flutter_svg](https://pub.dev/packages/flutter_svg) you can use the integration feature.
386+
If you are using SVG images with [flutter_svg](https://pub.dev/packages/flutter_svg) you can use the integration feature. This feature also supports using `vector_graphics_compiler` transformer and the produced code will use the `BytesAssetLoader` for such transformed assets.
384387

385388
```yaml
386389
# pubspec.yaml
@@ -391,6 +394,9 @@ flutter_gen:
391394
flutter:
392395
assets:
393396
- assets/images/icons/paint.svg
397+
- path: assets/images/icons/transformed.svg
398+
transformers:
399+
- package: vector_graphics_compiler
394400
```
395401

396402
```dart

0 commit comments

Comments
 (0)