Skip to content

Commit 7cb6b47

Browse files
committed
Update README with vector_graphics_compiler support info
1 parent dca5839 commit 7cb6b47

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ 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+
transformers:
209+
- package: vector_graphics_compiler
208210
- assets/images/icons/[email protected]
209211
- assets/json/fruits.json
210212
- assets/flare/Penguin.flr
@@ -380,7 +382,7 @@ flutter_gen:
380382
image: false
381383
```
382384

383-
If you are using SVG images with [flutter_svg](https://pub.dev/packages/flutter_svg) you can use the integration feature.
385+
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.
384386

385387
```yaml
386388
# pubspec.yaml
@@ -391,6 +393,9 @@ flutter_gen:
391393
flutter:
392394
assets:
393395
- assets/images/icons/paint.svg
396+
- path: assets/images/icons/transformed.svg
397+
transformers:
398+
- package: vector_graphics_compiler
394399
```
395400

396401
```dart

0 commit comments

Comments
 (0)