FlutterGen / flutter_gen

The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
https://pub.dev/packages/flutter_gen
MIT License
1.46k stars 145 forks source link

[FR]: Support for vector_graphic directly #362

Closed mcssym closed 4 months ago

mcssym commented 1 year ago

Is there an existing issue for this?

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

powdream commented 1 year ago

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

powdream commented 5 months ago

I closed my pull request to address this issue.

raldhafiri commented 5 months ago

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