Skip to content

firebase_ui_oauth: Pre-compile svg icon assets using vector_graphics_compiler #247

Open

Description

@lesnitsky

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, 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:

  1. Would no longer pull in the vector_graphics_compiler dependency, which adds ~180 KB to the build.
  2. Slightly more efficient runtime as the precompiled VectorGraphic can be a const.

Activity

  1. github-actions commented on Nov 12, 2024

    @github-actions

    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.

    Thank you for your contributions.

  2. aebrahim commented on Nov 12, 2024

    @aebrahim

    This issue still requires attention - flutter_svg is still listed as a dependency at the current version here: https://github.com/firebase/FirebaseUI-Flutter/blob/93bfe605d9b45fe14c2b7a37567618d88e7f49b2/packages/firebase_ui_oauth/pubspec.yaml

  3. github-actions commented on Dec 10, 2024

    @github-actions

    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.

    Thank you for your contributions.

  4. added
    Keep OpenKeep PR or issue open
    and removed
    StaleIssue with no recent activity
    on Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions