flutter_gen icon indicating copy to clipboard operation
flutter_gen copied to clipboard

[FR]: Support for vector_graphic directly

Open mcssym opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the problem

Flutter SVG is not optimized enough when loading many svg with no possibility to cache image at startup easily.

Describe the solution

Integrate vector_graphic in the generation process alongside flutter_svg and allow to user to configure vector_graphic as we configure flutter_svg currently. And therefore add the generation of the .vec optimized file of the SVG in the process of generation of the differents assets dart file with the supports of VectorGraphic widget instead of SvgPicture.

Additional context

flutter_svg already used vector_graphic under the hood and recommend to use the .vec generated binary file when more optimization is needed. So it'll be cool if this package directly allows it.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

mcssym avatar Feb 23 '23 10:02 mcssym

I made a pull-request to address this feature request.

powdream avatar Mar 06 '23 05:03 powdream

I closed my pull request to address this issue.

powdream avatar Mar 17 '24 06:03 powdream

@powdream I have create a new pull request to solve the issue

raldhafiri avatar Mar 27 '24 21:03 raldhafiri