Compare commits

...

3 Commits

Author SHA1 Message Date
a8f853437b Implement computeDryLayout (#141) 2021-03-08 22:09:16 +01:00
a570e3f580 Update readme (#139) 2021-03-06 00:09:16 +01:00
9584834956 Prepare version 1.0.0 (#136) 2021-02-24 20:14:13 +01:00
7 changed files with 24 additions and 21 deletions

View File

@ -1,6 +1,11 @@
## [0.8.0]
## [1.0.1]
- Implement `RenderBox.computeDryLayout`
## [1.0.0]
- Migrate to null safety
- Fix some rendering bugs
- Add an image delegate to dynamically change images
- Allow to use an imageProviderFactory with a zip file
## [0.7.1]
- Fix a crash for some lottie file with empty paths.

View File

@ -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)
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.
@ -246,13 +246,12 @@ class _Animation extends StatelessWidget {
````
## Limitations
Only the [supported features of Lottie Android](https://airbnb.io/lottie/#/supported-features)
are supported in this port.
This port supports the same [feature set as Lottie Android](https://airbnb.io/lottie/#/supported-features).
## 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
See the `example` folder for more code samples of the various possibilities.

View File

@ -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)
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.
@ -78,13 +78,12 @@ import 'example/lib/examples/simple_dynamic_properties.dart#example';
````
## Limitations
Only the [supported features of Lottie Android](https://airbnb.io/lottie/#/supported-features)
are supported in this port.
This port supports the same [feature set as Lottie Android](https://airbnb.io/lottie/#/supported-features).
## 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
See the `example` folder for more code samples of the various possibilities.

View File

@ -136,7 +136,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.8.0-nullsafety.4"
version: "1.0.1"
matcher:
dependency: transitive
description:

View File

@ -185,6 +185,11 @@ class RenderLottie extends RenderBox {
@override
bool hitTestSelf(Offset position) => true;
@override
Size computeDryLayout(BoxConstraints constraints) {
return _sizeForConstraints(constraints);
}
@override
void performLayout() {
size = _sizeForConstraints(constraints);

View File

@ -280,11 +280,9 @@ packages:
mockito:
dependency: "direct dev"
description:
path: "."
ref: HEAD
resolved-ref: c9fa2276b6b352331105e5b000d60f996d8ec452
url: "https://github.com/dart-lang/mockito.git"
source: git
name: mockito
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0"
package_config:
dependency: transitive

View File

@ -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: 0.8.0-nullsafety.4
version: 1.0.1
homepage: https://github.com/xvrh/lottie-flutter
environment:
@ -25,8 +25,5 @@ dev_dependencies:
flutter_test:
sdk: flutter
mockito:
git:
url: https://github.com/dart-lang/mockito.git
ref: c9fa227
pub_semver:
yaml: ^3.0.0