Skip to content

build(deps): bump lottie from 1.3.0 to 2.2.0 #44

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 16, 2023

Bumps lottie from 1.3.0 to 2.2.0.

Release notes

Sourced from lottie's releases.

v2.2.0

Apply the latest fixes from Lottie-Android:

  • Overhaul text layout
  • Fix rounded corners modifying already rounded corners
  • Support box position in Document Data
  • Allow interpolating between gradients with different opacity stops
  • Add support for gradient opacity stops

v2.1.0

  • Improve the cache to ensure that the animation is available on the first frame.
    The method AssetLottie('anim.json').load() returns a SynchronousFuture if it has been loaded previously.
  • Expose the LottieCache singleton. It allows to change the cache behaviour and clear the entries.
void main() {
  Lottie.cache.maximumSize = 10;
  Lottie.cache.clear();
  Lottie.cache.evict(NetworkLottie('https://lottie.com/anim.json'));
}

v2.0.0

Breaking change: the lottie widget will be smaller if it relies on the intrinsic size of the composition. Previously the lottie parser was automatically multiplying the size of the composition by window.devicePixelRatio. This was incorrect as it results in a widget of a different size depending on the pixel ratio of the monitor. Furthermore, it created some bugs when the property window.devicePixelRatio was not available immediately at the start of the app (on Android release builds).

The code can be adapted to specify explicitly the size of the animation with width, height and fit properties.

Scaffold(
  body: Center(
    child: Lottie.asset(
      'assets/LottieLogo1.json',
      height: 800,
      fit: BoxFit.contain,
    ),
  ),
);

v1.4.3

  • Fixed some lints with Flutter 3.3.

v1.4.2

  • Use FilterQuality.low as default to draw image layers.

v1.4.1

  • Allow AlignmentGeometry for alignment.

... (truncated)

Changelog

Sourced from lottie's changelog.

[2.2.0]

Apply the latest fixes from Lottie-Android:

  • Overhaul text layout
  • Fix rounded corners modifying already rounded corners
  • Support box position in Document Data
  • Allow interpolating between gradients with different opacity stops
  • Add support for gradient opacity stops

[2.1.0]

  • Improve the cache to ensure that there is not an empty frame each time we load an animation.
    The method AssetLottie('anim.json').load() returns a SynchronousFuture if it has been loaded previously.
  • Expose the LottieCache singleton. It allows to change the cache behaviour and clear the entries.
void main() {
  Lottie.cache.maximumSize = 10;
  Lottie.cache.clear();
  Lottie.cache.evict(NetworkLottie('https://lottie.com/anim.json'));
}

[2.0.0]

  • Breaking change: the lottie widget will be smaller if it relies on the intrinsic size of the composition.

Previously the lottie parser was automatically multiplying the size of the composition by window.devicePixelRatio. This was incorrect as it results in a widget of a different size depending on the pixel ratio of the monitor. Furthermore, it created some bugs when the property window.devicePixelRatio was not available immediately at the start of the app (on Android release builds).

The code can be adapted to specify explicitly the size of the animation with width, height and fit properties.

Scaffold(
  body: Center(
    child: Lottie.asset(
      'assets/LottieLogo1.json',
      height: 800,
      fit: BoxFit.contain,
    ),
  ),
);

[1.4.3]

  • Fixed some lints with Flutter 3.3.

[1.4.2]

  • Use FilterQuality.low as default to draw image layers.

... (truncated)

Commits
  • dc43a53 Recognize some textstyle (#257)
  • 1b752bf Apply latest fixes from Lottie-Android (#256)
  • 21f34e6 Add lint avoid_final_parameter (#254)
  • 8dcb052 Rework the cache so animation can be loaded without flickering 1 frame (#246)
  • a333a42 Enable use_super_parameters lint (#242)
  • 8ce429c Breaking change: Remove window.devicePixelRatio from the parser (#240)
  • fc450a8 Fix some warnings with Flutter 3.3 (#235)
  • c0bc257 use FilterQuality.low to default when draw image layer to fix some image rend...
  • 0e7499d Allow AlignmentGeometry for alignment (#228)
  • 4cd9ec7 Update publish-on-pub action
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [lottie](https://github.com/xvrh/lottie-flutter) from 1.3.0 to 2.2.0.
- [Release notes](https://github.com/xvrh/lottie-flutter/releases)
- [Changelog](https://github.com/xvrh/lottie-flutter/blob/master/CHANGELOG.md)
- [Commits](xvrh/lottie-flutter@v1.3.0...v2.2.0)

---
updated-dependencies:
- dependency-name: lottie
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 16, 2023
@dependabot dependabot bot requested a review from itstor January 16, 2023 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants