mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-06 16:39:36 +08:00
Compare commits
3 Commits
v0.8.0-nul
...
v1.0.1
Author | SHA1 | Date | |
---|---|---|---|
a8f853437b | |||
a570e3f580 | |||
9584834956 |
@ -1,6 +1,11 @@
|
|||||||
## [0.8.0]
|
## [1.0.1]
|
||||||
|
- Implement `RenderBox.computeDryLayout`
|
||||||
|
|
||||||
|
## [1.0.0]
|
||||||
- Migrate to null safety
|
- Migrate to null safety
|
||||||
- Fix some rendering bugs
|
- Fix some rendering bugs
|
||||||
|
- Add an image delegate to dynamically change images
|
||||||
|
- Allow to use an imageProviderFactory with a zip file
|
||||||
|
|
||||||
## [0.7.1]
|
## [0.7.1]
|
||||||
- Fix a crash for some lottie file with empty paths.
|
- Fix a crash for some lottie file with empty paths.
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
Lottie is a mobile library for Android and iOS that parses [Adobe After Effects](https://www.adobe.com/products/aftereffects.html)
|
Lottie is a mobile library for Android and iOS that parses [Adobe After Effects](https://www.adobe.com/products/aftereffects.html)
|
||||||
animations exported as json with [Bodymovin](https://github.com/airbnb/lottie-web) and renders them natively on mobile!
|
animations exported as json with [Bodymovin](https://github.com/airbnb/lottie-web) and renders them natively on mobile!
|
||||||
|
|
||||||
This repository is a unofficial conversion of the [Lottie-android](https://github.com/airbnb/lottie-android) library in pure Dart.
|
This repository is an unofficial conversion of the [Lottie-android](https://github.com/airbnb/lottie-android) library in pure Dart.
|
||||||
|
|
||||||
It works on Android, iOS, macOS, linux, windows and web.
|
It works on Android, iOS, macOS, linux, windows and web.
|
||||||
|
|
||||||
@ -246,13 +246,12 @@ class _Animation extends StatelessWidget {
|
|||||||
````
|
````
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
Only the [supported features of Lottie Android](https://airbnb.io/lottie/#/supported-features)
|
This port supports the same [feature set as Lottie Android](https://airbnb.io/lottie/#/supported-features).
|
||||||
are supported in this port.
|
|
||||||
|
|
||||||
## Flutter Web
|
## Flutter Web
|
||||||
Run the app with `flutter run -d Chrome --dart-define=FLUTTER_WEB_USE_SKIA=true --release`
|
Run the app with `flutter run -d chrome --web-renderer canvaskit`
|
||||||
|
|
||||||
See a preview here: https://xvrh.github.io/lottie-flutter/index.html
|
See a preview here: https://xvrh.github.io/lottie-flutter-web/
|
||||||
|
|
||||||
## More examples
|
## More examples
|
||||||
See the `example` folder for more code samples of the various possibilities.
|
See the `example` folder for more code samples of the various possibilities.
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
Lottie is a mobile library for Android and iOS that parses [Adobe After Effects](https://www.adobe.com/products/aftereffects.html)
|
Lottie is a mobile library for Android and iOS that parses [Adobe After Effects](https://www.adobe.com/products/aftereffects.html)
|
||||||
animations exported as json with [Bodymovin](https://github.com/airbnb/lottie-web) and renders them natively on mobile!
|
animations exported as json with [Bodymovin](https://github.com/airbnb/lottie-web) and renders them natively on mobile!
|
||||||
|
|
||||||
This repository is a unofficial conversion of the [Lottie-android](https://github.com/airbnb/lottie-android) library in pure Dart.
|
This repository is an unofficial conversion of the [Lottie-android](https://github.com/airbnb/lottie-android) library in pure Dart.
|
||||||
|
|
||||||
It works on Android, iOS, macOS, linux, windows and web.
|
It works on Android, iOS, macOS, linux, windows and web.
|
||||||
|
|
||||||
@ -78,13 +78,12 @@ import 'example/lib/examples/simple_dynamic_properties.dart#example';
|
|||||||
````
|
````
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
Only the [supported features of Lottie Android](https://airbnb.io/lottie/#/supported-features)
|
This port supports the same [feature set as Lottie Android](https://airbnb.io/lottie/#/supported-features).
|
||||||
are supported in this port.
|
|
||||||
|
|
||||||
## Flutter Web
|
## Flutter Web
|
||||||
Run the app with `flutter run -d Chrome --dart-define=FLUTTER_WEB_USE_SKIA=true --release`
|
Run the app with `flutter run -d chrome --web-renderer canvaskit`
|
||||||
|
|
||||||
See a preview here: https://xvrh.github.io/lottie-flutter/index.html
|
See a preview here: https://xvrh.github.io/lottie-flutter-web/
|
||||||
|
|
||||||
## More examples
|
## More examples
|
||||||
See the `example` folder for more code samples of the various possibilities.
|
See the `example` folder for more code samples of the various possibilities.
|
||||||
|
@ -136,7 +136,7 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.8.0-nullsafety.4"
|
version: "1.0.1"
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -185,6 +185,11 @@ class RenderLottie extends RenderBox {
|
|||||||
@override
|
@override
|
||||||
bool hitTestSelf(Offset position) => true;
|
bool hitTestSelf(Offset position) => true;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Size computeDryLayout(BoxConstraints constraints) {
|
||||||
|
return _sizeForConstraints(constraints);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void performLayout() {
|
void performLayout() {
|
||||||
size = _sizeForConstraints(constraints);
|
size = _sizeForConstraints(constraints);
|
||||||
|
@ -280,11 +280,9 @@ packages:
|
|||||||
mockito:
|
mockito:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
path: "."
|
name: mockito
|
||||||
ref: HEAD
|
url: "https://pub.dartlang.org"
|
||||||
resolved-ref: c9fa2276b6b352331105e5b000d60f996d8ec452
|
source: hosted
|
||||||
url: "https://github.com/dart-lang/mockito.git"
|
|
||||||
source: git
|
|
||||||
version: "5.0.0"
|
version: "5.0.0"
|
||||||
package_config:
|
package_config:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
|
@ -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: 0.8.0-nullsafety.4
|
version: 1.0.1
|
||||||
homepage: https://github.com/xvrh/lottie-flutter
|
homepage: https://github.com/xvrh/lottie-flutter
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
@ -25,8 +25,5 @@ dev_dependencies:
|
|||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
mockito:
|
mockito:
|
||||||
git:
|
|
||||||
url: https://github.com/dart-lang/mockito.git
|
|
||||||
ref: c9fa227
|
|
||||||
pub_semver:
|
pub_semver:
|
||||||
yaml: ^3.0.0
|
yaml: ^3.0.0
|
||||||
|
Reference in New Issue
Block a user