flutter_gen icon indicating copy to clipboard operation
flutter_gen copied to clipboard

Use .vec SVG class for vector_graphics_compiler transformed assets

Open Albert221 opened this issue 5 months ago • 1 comments

What does this change?

In the SVG integration, assets that have a vector_graphics_compiler asset transformer will use SvgGenImage.vec constructor to use correct bytes loader.

Fixes #684 🎯

Type of change

Please delete options that are not relevant.

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [x] This change requires a documentation update

Checklist:

Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • [x] Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
    • [x] Ensure the tests (melos run test)
    • [x] Ensure the analyzer and formatter pass (melos run format to automatically apply formatting)
  • [x] Appropriate docs were updated (if necessary)

Albert221 avatar May 10 '25 13:05 Albert221