Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: flame svg perfomance #1373

Merged
merged 4 commits into from
Feb 21, 2022
Merged

fix: flame svg perfomance #1373

merged 4 commits into from
Feb 21, 2022

Conversation

erickzanardo
Copy link
Member

Description

Fixes Flame SVG perfomance by caching it in an image.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the
relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples.

Breaking Change

Does your PR require Flame users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change. (Indicate it in the Conventional Commit prefix with a !,
    e.g. feat!:, fix!:).
  • No, this is not a breaking change.

Related Issues

Replace this paragraph with a list of issues related to this PR from the issue database.
Indicate which of these issues are resolved or fixed by this PR, i.e. Fixes #xxxx

packages/flame_svg/lib/svg.dart Show resolved Hide resolved
packages/flame_svg/lib/svg.dart Outdated Show resolved Hide resolved
packages/flame_svg/lib/svg.dart Show resolved Hide resolved
packages/flame_svg/lib/svg.dart Show resolved Hide resolved
packages/flame_svg/lib/svg.dart Show resolved Hide resolved
packages/flame_svg/pubspec.yaml Show resolved Hide resolved
Copy link
Contributor

@wolfenrain wolfenrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@erickzanardo erickzanardo merged commit bce2417 into main Feb 21, 2022
@erickzanardo erickzanardo deleted the erick.svg-perfomance branch February 21, 2022 14:59
Copy link
Member

@renancaraujo renancaraujo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love it!

st-pasha pushed a commit to st-pasha/flame that referenced this pull request Feb 21, 2022
* fix: flame svg perfomance

* PR suggestions and some tests

* linting

* addressing comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants