Replies: 1 comment
-
Great suggestion, I will be looking into implementing this. Will be tracked under #247 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.Beta Was this translation helpful? Give feedback.
All reactions