From 0e7499d82ea1370b6acf023af570395bbb59b42f Mon Sep 17 00:00:00 2001 From: Alex Li Date: Wed, 3 Aug 2022 17:52:58 +0800 Subject: [PATCH] Allow `AlignmentGeometry` for `alignment` (#228) Thanks for the contribution --- CHANGELOG.md | 3 +++ lib/src/lottie.dart | 8 ++++---- pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34dcaa9a..84c2f512 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [1.4.1] +- Allow `AlignmentGeometry` for `alignment`. + ## [1.4.0] - Added `filterQuality` property to control the performance vs quality trade-off to use when drawing images diff --git a/lib/src/lottie.dart b/lib/src/lottie.dart index 324b237b..2fc50156 100644 --- a/lib/src/lottie.dart +++ b/lib/src/lottie.dart @@ -52,7 +52,7 @@ class Lottie extends StatefulWidget { double? width, double? height, BoxFit? fit, - Alignment? alignment, + AlignmentGeometry? alignment, String? package, bool? addRepaintBoundary, FilterQuality? filterQuality, @@ -101,7 +101,7 @@ class Lottie extends StatefulWidget { double? width, double? height, BoxFit? fit, - Alignment? alignment, + AlignmentGeometry? alignment, bool? addRepaintBoundary, FilterQuality? filterQuality, WarningCallback? onWarning, @@ -147,7 +147,7 @@ class Lottie extends StatefulWidget { double? width, double? height, BoxFit? fit, - Alignment? alignment, + AlignmentGeometry? alignment, bool? addRepaintBoundary, FilterQuality? filterQuality, WarningCallback? onWarning, @@ -193,7 +193,7 @@ class Lottie extends StatefulWidget { double? width, double? height, BoxFit? fit, - Alignment? alignment, + AlignmentGeometry? alignment, bool? addRepaintBoundary, FilterQuality? filterQuality, WarningCallback? onWarning, diff --git a/pubspec.yaml b/pubspec.yaml index 33c978e6..5f7a6cb1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: lottie description: Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player. -version: 1.4.0 +version: 1.4.1 homepage: https://github.com/xvrh/lottie-flutter environment: