You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by aebrahim January 4, 2024
The social login icons are packaged as strings containing the raw svg, which are then rendered using flutter_svg. However, under the hood, using flutter_svg means also including its dependency vector_graphics_compiler with the application, which at runtime converts raw svg to a compiled VectorGraphic to display.
Given that the svg string is known at build time, it is possible to pre-compile it as a VectorGraphic at build time. Advantages:
Would no longer pull in the vector_graphics_compiler dependency, which adds ~180 KB to the build.
Slightly more efficient runtime as the precompiled VectorGraphic can be a const.
The text was updated successfully, but these errors were encountered:
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Discussed in #240
Originally posted by aebrahim January 4, 2024
The social login icons are packaged as strings containing the raw svg, which are then rendered using
flutter_svg
. However, under the hood, usingflutter_svg
means also including its dependencyvector_graphics_compiler
with the application, which at runtime converts raw svg to a compiledVectorGraphic
to display.Given that the svg string is known at build time, it is possible to pre-compile it as a
VectorGraphic
at build time. Advantages:vector_graphics_compiler
dependency, which adds ~180 KB to the build.VectorGraphic
can be a const.The text was updated successfully, but these errors were encountered: