Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
c0bc257f4f | |||
0e7499d82e | |||
4cd9ec759a |
4
.github/workflows/publish-on-pub.yaml
vendored
@ -8,9 +8,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: subosito/flutter-action@v1
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: 'beta'
|
channel: 'stable'
|
||||||
- run: flutter pub get
|
- run: flutter pub get
|
||||||
- run: flutter pub run tool/publish/comment_dependency_overrides.dart
|
- run: flutter pub run tool/publish/comment_dependency_overrides.dart
|
||||||
- run: flutter pub get
|
- run: flutter pub get
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
## [1.4.2]
|
||||||
|
- Use `FilterQuality.low` as default to draw image layers.
|
||||||
|
|
||||||
|
## [1.4.1]
|
||||||
|
- Allow `AlignmentGeometry` for `alignment`.
|
||||||
|
|
||||||
## [1.4.0]
|
## [1.4.0]
|
||||||
- Added `filterQuality` property to control the performance vs quality trade-off to use when drawing images
|
- Added `filterQuality` property to control the performance vs quality trade-off to use when drawing images
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "1.4.0"
|
version: "1.4.2"
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -52,7 +52,7 @@ class Lottie extends StatefulWidget {
|
|||||||
double? width,
|
double? width,
|
||||||
double? height,
|
double? height,
|
||||||
BoxFit? fit,
|
BoxFit? fit,
|
||||||
Alignment? alignment,
|
AlignmentGeometry? alignment,
|
||||||
String? package,
|
String? package,
|
||||||
bool? addRepaintBoundary,
|
bool? addRepaintBoundary,
|
||||||
FilterQuality? filterQuality,
|
FilterQuality? filterQuality,
|
||||||
@ -101,7 +101,7 @@ class Lottie extends StatefulWidget {
|
|||||||
double? width,
|
double? width,
|
||||||
double? height,
|
double? height,
|
||||||
BoxFit? fit,
|
BoxFit? fit,
|
||||||
Alignment? alignment,
|
AlignmentGeometry? alignment,
|
||||||
bool? addRepaintBoundary,
|
bool? addRepaintBoundary,
|
||||||
FilterQuality? filterQuality,
|
FilterQuality? filterQuality,
|
||||||
WarningCallback? onWarning,
|
WarningCallback? onWarning,
|
||||||
@ -147,7 +147,7 @@ class Lottie extends StatefulWidget {
|
|||||||
double? width,
|
double? width,
|
||||||
double? height,
|
double? height,
|
||||||
BoxFit? fit,
|
BoxFit? fit,
|
||||||
Alignment? alignment,
|
AlignmentGeometry? alignment,
|
||||||
bool? addRepaintBoundary,
|
bool? addRepaintBoundary,
|
||||||
FilterQuality? filterQuality,
|
FilterQuality? filterQuality,
|
||||||
WarningCallback? onWarning,
|
WarningCallback? onWarning,
|
||||||
@ -193,7 +193,7 @@ class Lottie extends StatefulWidget {
|
|||||||
double? width,
|
double? width,
|
||||||
double? height,
|
double? height,
|
||||||
BoxFit? fit,
|
BoxFit? fit,
|
||||||
Alignment? alignment,
|
AlignmentGeometry? alignment,
|
||||||
bool? addRepaintBoundary,
|
bool? addRepaintBoundary,
|
||||||
FilterQuality? filterQuality,
|
FilterQuality? filterQuality,
|
||||||
WarningCallback? onWarning,
|
WarningCallback? onWarning,
|
||||||
@ -311,7 +311,7 @@ class Lottie extends StatefulWidget {
|
|||||||
/// The quality of the image layer. See [FilterQuality]
|
/// The quality of the image layer. See [FilterQuality]
|
||||||
/// [FilterQuality.high] is highest quality but slowest.
|
/// [FilterQuality.high] is highest quality but slowest.
|
||||||
///
|
///
|
||||||
/// Defaults to [FilterQuality.none]
|
/// Defaults to [FilterQuality.low]
|
||||||
final FilterQuality? filterQuality;
|
final FilterQuality? filterQuality;
|
||||||
|
|
||||||
static bool get traceEnabled => L.traceEnabled;
|
static bool get traceEnabled => L.traceEnabled;
|
||||||
|
@ -369,7 +369,7 @@ class LottieBuilder extends StatefulWidget {
|
|||||||
/// The quality of the image layer. See [FilterQuality]
|
/// The quality of the image layer. See [FilterQuality]
|
||||||
/// [FilterQuality.high] is highest quality but slowest.
|
/// [FilterQuality.high] is highest quality but slowest.
|
||||||
///
|
///
|
||||||
/// Defaults to [FilterQuality.none]
|
/// Defaults to [FilterQuality.low]
|
||||||
final FilterQuality? filterQuality;
|
final FilterQuality? filterQuality;
|
||||||
|
|
||||||
/// A callback called when there is a warning during the loading or painting
|
/// A callback called when there is a warning during the loading or painting
|
||||||
|
@ -25,7 +25,7 @@ class ImageLayer extends BaseLayer {
|
|||||||
}
|
}
|
||||||
var density = window.devicePixelRatio;
|
var density = window.devicePixelRatio;
|
||||||
|
|
||||||
paint.filterQuality = lottieDrawable.filterQuality ?? FilterQuality.none;
|
paint.filterQuality = lottieDrawable.filterQuality ?? FilterQuality.low;
|
||||||
paint.setAlpha(parentAlpha);
|
paint.setAlpha(parentAlpha);
|
||||||
if (_colorFilterAnimation != null) {
|
if (_colorFilterAnimation != null) {
|
||||||
paint.colorFilter = _colorFilterAnimation!.value;
|
paint.colorFilter = _colorFilterAnimation!.value;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: lottie
|
name: lottie
|
||||||
description: Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
|
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.2
|
||||||
homepage: https://github.com/xvrh/lottie-flutter
|
homepage: https://github.com/xvrh/lottie-flutter
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 63 KiB |