Compare commits
2 Commits
error_buil
...
v0.7.0+1
Author | SHA1 | Date | |
---|---|---|---|
cb8006d362 | |||
bf7d0ebf05 |
2
.github/workflows/analyze-and-test.yaml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
name: Flutter analyze
|
name: Flutter analyze
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
flutter: ['stable', 'dev']
|
flutter: ['stable']
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
## [0.7.0+1]
|
||||||
|
- Fix Flutter Web compilation error
|
||||||
|
|
||||||
|
## [0.7.0]
|
||||||
|
- Performance improvement for complex animations.
|
||||||
|
|
||||||
## [0.6.0]
|
## [0.6.0]
|
||||||
- Runs the animation at the frame rate specified in the json file (ie. An animation encoded with a 20 FPS will only
|
- Runs the animation at the frame rate specified in the json file (ie. An animation encoded with a 20 FPS will only
|
||||||
be paint 20 times per seconds even though the AnimationController will invalidate the widget 60 times per seconds).
|
be paint 20 times per seconds even though the AnimationController will invalidate the widget 60 times per seconds).
|
||||||
|
@ -8,7 +8,7 @@ animations exported as json with [Bodymovin](https://github.com/airbnb/lottie-we
|
|||||||
|
|
||||||
This repository is a unofficial conversion of the [Lottie-android](https://github.com/airbnb/lottie-android) library in pure Dart.
|
This repository is a unofficial conversion of the [Lottie-android](https://github.com/airbnb/lottie-android) library in pure Dart.
|
||||||
|
|
||||||
It works on Android, iOS and macOS and web.
|
It works on Android, iOS, macOS, linux, windows and web.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ animations exported as json with [Bodymovin](https://github.com/airbnb/lottie-we
|
|||||||
|
|
||||||
This repository is a unofficial conversion of the [Lottie-android](https://github.com/airbnb/lottie-android) library in pure Dart.
|
This repository is a unofficial conversion of the [Lottie-android](https://github.com/airbnb/lottie-android) library in pure Dart.
|
||||||
|
|
||||||
It works on Android, iOS and macOS and web.
|
It works on Android, iOS, macOS, linux, windows and web.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -21,42 +21,42 @@ packages:
|
|||||||
name: async
|
name: async
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.4.2"
|
version: "2.5.0-nullsafety.1"
|
||||||
boolean_selector:
|
boolean_selector:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: boolean_selector
|
name: boolean_selector
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.0"
|
version: "2.1.0-nullsafety.1"
|
||||||
characters:
|
characters:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: characters
|
name: characters
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.0"
|
version: "1.1.0-nullsafety.3"
|
||||||
charcode:
|
charcode:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: charcode
|
name: charcode
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.3"
|
version: "1.2.0-nullsafety.1"
|
||||||
clock:
|
clock:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: clock
|
name: clock
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.1"
|
version: "1.1.0-nullsafety.1"
|
||||||
collection:
|
collection:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: collection
|
name: collection
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.14.13"
|
version: "1.15.0-nullsafety.3"
|
||||||
convert:
|
convert:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -77,7 +77,14 @@ packages:
|
|||||||
name: fake_async
|
name: fake_async
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.2.0-nullsafety.1"
|
||||||
|
ffi:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: ffi
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.1.3"
|
||||||
file:
|
file:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -143,35 +150,35 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.6.0"
|
version: "0.7.0+1"
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: matcher
|
name: matcher
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.8"
|
version: "0.12.10-nullsafety.1"
|
||||||
meta:
|
meta:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: meta
|
name: meta
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.8"
|
version: "1.3.0-nullsafety.3"
|
||||||
path:
|
path:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: path
|
name: path
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.7.0"
|
version: "1.8.0-nullsafety.1"
|
||||||
path_provider:
|
path_provider:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: path_provider
|
name: path_provider
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.6.14"
|
version: "1.6.21"
|
||||||
path_provider_linux:
|
path_provider_linux:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -185,7 +192,7 @@ packages:
|
|||||||
name: path_provider_macos
|
name: path_provider_macos
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.0.4+3"
|
version: "0.0.4+4"
|
||||||
path_provider_platform_interface:
|
path_provider_platform_interface:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -193,13 +200,20 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.3"
|
version: "1.0.3"
|
||||||
|
path_provider_windows:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: path_provider_windows
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.0.4+1"
|
||||||
pedantic:
|
pedantic:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: pedantic
|
name: pedantic
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.9.0"
|
version: "1.9.2"
|
||||||
platform:
|
platform:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -213,7 +227,7 @@ packages:
|
|||||||
name: plugin_platform_interface
|
name: plugin_platform_interface
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.2"
|
version: "1.0.3"
|
||||||
process:
|
process:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -232,63 +246,70 @@ packages:
|
|||||||
name: source_span
|
name: source_span
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.7.0"
|
version: "1.8.0-nullsafety.2"
|
||||||
stack_trace:
|
stack_trace:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: stack_trace
|
name: stack_trace
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.9.5"
|
version: "1.10.0-nullsafety.1"
|
||||||
stream_channel:
|
stream_channel:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: stream_channel
|
name: stream_channel
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.0"
|
version: "2.1.0-nullsafety.1"
|
||||||
string_scanner:
|
string_scanner:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: string_scanner
|
name: string_scanner
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.5"
|
version: "1.1.0-nullsafety.1"
|
||||||
term_glyph:
|
term_glyph:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: term_glyph
|
name: term_glyph
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.2.0-nullsafety.1"
|
||||||
test_api:
|
test_api:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: test_api
|
name: test_api
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.17"
|
version: "0.2.19-nullsafety.2"
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: typed_data
|
name: typed_data
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.3.0-nullsafety.3"
|
||||||
vector_math:
|
vector_math:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: vector_math
|
name: vector_math
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.8"
|
version: "2.1.0-nullsafety.3"
|
||||||
|
win32:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: win32
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.7.3"
|
||||||
xdg_directories:
|
xdg_directories:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: xdg_directories
|
name: xdg_directories
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.1.0"
|
version: "0.1.2"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.9.0-14.0.dev <3.0.0"
|
dart: ">=2.10.0-110 <2.11.0"
|
||||||
flutter: ">=1.12.13+hotfix.5 <2.0.0"
|
flutter: ">=1.12.13+hotfix.5 <2.0.0"
|
||||||
|
@ -8,11 +8,11 @@ environment:
|
|||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
flutter_colorpicker:
|
||||||
|
http:
|
||||||
lottie:
|
lottie:
|
||||||
path: ../
|
path: ../
|
||||||
flutter_colorpicker:
|
|
||||||
path_provider:
|
path_provider:
|
||||||
http:
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 15 KiB |
189
lib/src/utils/debug_path.dart
Normal file
@ -0,0 +1,189 @@
|
|||||||
|
import 'dart:typed_data';
|
||||||
|
import 'dart:ui';
|
||||||
|
|
||||||
|
class DebugPath extends Path {
|
||||||
|
void _log(String methodName) {
|
||||||
|
print('Path.$methodName');
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void addArc(Rect oval, double startAngle, double sweepAngle) {
|
||||||
|
_log('addArc');
|
||||||
|
super.addArc(oval, startAngle, sweepAngle);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void addOval(Rect oval) {
|
||||||
|
_log('addOval');
|
||||||
|
super.addOval(oval);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void addPath(Path path, Offset offset, {Float64List matrix4}) {
|
||||||
|
_log('addPath');
|
||||||
|
super.addPath(path, offset, matrix4: matrix4);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void addPolygon(List<Offset> points, bool close) {
|
||||||
|
_log('addPolygon');
|
||||||
|
super.addPolygon(points, close);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void addRRect(RRect rrect) {
|
||||||
|
_log('addRRect');
|
||||||
|
super.addRRect(rrect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void addRect(Rect rect) {
|
||||||
|
_log('addRect');
|
||||||
|
super.addRect(rect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void arcTo(
|
||||||
|
Rect rect, double startAngle, double sweepAngle, bool forceMoveTo) {
|
||||||
|
_log('arcTo');
|
||||||
|
super.arcTo(rect, startAngle, sweepAngle, forceMoveTo);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void arcToPoint(Offset arcEnd,
|
||||||
|
{Radius radius = Radius.zero,
|
||||||
|
double rotation = 0.0,
|
||||||
|
bool largeArc = false,
|
||||||
|
bool clockwise = true}) {
|
||||||
|
_log('arcToPoint');
|
||||||
|
super.arcToPoint(arcEnd,
|
||||||
|
radius: radius,
|
||||||
|
rotation: rotation,
|
||||||
|
largeArc: largeArc,
|
||||||
|
clockwise: clockwise);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void close() {
|
||||||
|
_log('close');
|
||||||
|
super.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
PathMetrics computeMetrics({bool forceClosed = false}) {
|
||||||
|
_log('computeMetrics');
|
||||||
|
return super.computeMetrics();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void conicTo(double x1, double y1, double x2, double y2, double w) {
|
||||||
|
_log('conicTo');
|
||||||
|
super.conicTo(x1, y1, x2, y2, w);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool contains(Offset point) {
|
||||||
|
_log('contains');
|
||||||
|
return super.contains(point);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void cubicTo(
|
||||||
|
double x1, double y1, double x2, double y2, double x3, double y3) {
|
||||||
|
_log('cubicTo');
|
||||||
|
super.cubicTo(x1, y1, x2, y2, x3, y3);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void extendWithPath(Path path, Offset offset, {Float64List matrix4}) {
|
||||||
|
_log('extendWithPath');
|
||||||
|
super.extendWithPath(path, offset, matrix4: matrix4);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Rect getBounds() {
|
||||||
|
_log('getBounds');
|
||||||
|
return super.getBounds();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void lineTo(double x, double y) {
|
||||||
|
_log('lineTo');
|
||||||
|
super.lineTo(x, y);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void moveTo(double x, double y) {
|
||||||
|
_log('moveTo');
|
||||||
|
super.moveTo(x, y);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void quadraticBezierTo(double x1, double y1, double x2, double y2) {
|
||||||
|
_log('quadraticBezierTo');
|
||||||
|
super.quadraticBezierTo(x1, y1, x2, y2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void relativeArcToPoint(Offset arcEndDelta,
|
||||||
|
{Radius radius = Radius.zero,
|
||||||
|
double rotation = 0.0,
|
||||||
|
bool largeArc = false,
|
||||||
|
bool clockwise = true}) {
|
||||||
|
_log('relativeArcToPoint');
|
||||||
|
super.relativeArcToPoint(arcEndDelta,
|
||||||
|
radius: radius,
|
||||||
|
rotation: rotation,
|
||||||
|
largeArc: largeArc,
|
||||||
|
clockwise: clockwise);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void relativeConicTo(double x1, double y1, double x2, double y2, double w) {
|
||||||
|
_log('relativeConicTo');
|
||||||
|
super.relativeConicTo(x1, y1, x2, y2, w);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void relativeCubicTo(
|
||||||
|
double x1, double y1, double x2, double y2, double x3, double y3) {
|
||||||
|
_log('relativeCubicTo');
|
||||||
|
super.relativeCubicTo(x1, y1, x2, y2, x3, y3);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void relativeLineTo(double dx, double dy) {
|
||||||
|
_log('relativeLineTo');
|
||||||
|
super.relativeLineTo(dx, dy);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void relativeMoveTo(double dx, double dy) {
|
||||||
|
_log('relativeMoveTo');
|
||||||
|
super.relativeMoveTo(dx, dy);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void relativeQuadraticBezierTo(double x1, double y1, double x2, double y2) {
|
||||||
|
_log('relativeQuadraticBezierTo');
|
||||||
|
super.relativeQuadraticBezierTo(x1, y1, x2, y2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void reset() {
|
||||||
|
_log('reset');
|
||||||
|
super.reset();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Path shift(Offset offset) {
|
||||||
|
_log('shift');
|
||||||
|
return super.shift(offset);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Path transform(Float64List matrix4) {
|
||||||
|
_log('transform');
|
||||||
|
return super.transform(matrix4);
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,3 @@
|
|||||||
import 'dart:typed_data';
|
|
||||||
import 'dart:ui';
|
import 'dart:ui';
|
||||||
|
|
||||||
class PathFactory {
|
class PathFactory {
|
||||||
@ -6,190 +5,3 @@ class PathFactory {
|
|||||||
return Path();
|
return Path();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class DebugPath extends Path {
|
|
||||||
void _log(String methodName) {
|
|
||||||
print('Path.$methodName');
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void addArc(Rect oval, double startAngle, double sweepAngle) {
|
|
||||||
_log('addArc');
|
|
||||||
super.addArc(oval, startAngle, sweepAngle);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void addOval(Rect oval) {
|
|
||||||
_log('addOval');
|
|
||||||
super.addOval(oval);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void addPath(Path path, Offset offset, {Float64List matrix4}) {
|
|
||||||
_log('addPath');
|
|
||||||
super.addPath(path, offset, matrix4: matrix4);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void addPolygon(List<Offset> points, bool close) {
|
|
||||||
_log('addPolygon');
|
|
||||||
super.addPolygon(points, close);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void addRRect(RRect rrect) {
|
|
||||||
_log('addRRect');
|
|
||||||
super.addRRect(rrect);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void addRect(Rect rect) {
|
|
||||||
_log('addRect');
|
|
||||||
super.addRect(rect);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void arcTo(
|
|
||||||
Rect rect, double startAngle, double sweepAngle, bool forceMoveTo) {
|
|
||||||
_log('arcTo');
|
|
||||||
super.arcTo(rect, startAngle, sweepAngle, forceMoveTo);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void arcToPoint(Offset arcEnd,
|
|
||||||
{Radius radius = Radius.zero,
|
|
||||||
double rotation = 0.0,
|
|
||||||
bool largeArc = false,
|
|
||||||
bool clockwise = true}) {
|
|
||||||
_log('arcToPoint');
|
|
||||||
super.arcToPoint(arcEnd,
|
|
||||||
radius: radius,
|
|
||||||
rotation: rotation,
|
|
||||||
largeArc: largeArc,
|
|
||||||
clockwise: clockwise);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void close() {
|
|
||||||
_log('close');
|
|
||||||
super.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
PathMetrics computeMetrics({bool forceClosed = false}) {
|
|
||||||
_log('computeMetrics');
|
|
||||||
return super.computeMetrics();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void conicTo(double x1, double y1, double x2, double y2, double w) {
|
|
||||||
_log('conicTo');
|
|
||||||
super.conicTo(x1, y1, x2, y2, w);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool contains(Offset point) {
|
|
||||||
_log('contains');
|
|
||||||
return super.contains(point);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void cubicTo(
|
|
||||||
double x1, double y1, double x2, double y2, double x3, double y3) {
|
|
||||||
_log('cubicTo');
|
|
||||||
super.cubicTo(x1, y1, x2, y2, x3, y3);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void extendWithPath(Path path, Offset offset, {Float64List matrix4}) {
|
|
||||||
_log('extendWithPath');
|
|
||||||
super.extendWithPath(path, offset, matrix4: matrix4);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Rect getBounds() {
|
|
||||||
_log('getBounds');
|
|
||||||
return super.getBounds();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void lineTo(double x, double y) {
|
|
||||||
_log('lineTo');
|
|
||||||
super.lineTo(x, y);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void moveTo(double x, double y) {
|
|
||||||
_log('moveTo');
|
|
||||||
super.moveTo(x, y);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void quadraticBezierTo(double x1, double y1, double x2, double y2) {
|
|
||||||
_log('quadraticBezierTo');
|
|
||||||
super.quadraticBezierTo(x1, y1, x2, y2);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void relativeArcToPoint(Offset arcEndDelta,
|
|
||||||
{Radius radius = Radius.zero,
|
|
||||||
double rotation = 0.0,
|
|
||||||
bool largeArc = false,
|
|
||||||
bool clockwise = true}) {
|
|
||||||
_log('relativeArcToPoint');
|
|
||||||
super.relativeArcToPoint(arcEndDelta,
|
|
||||||
radius: radius,
|
|
||||||
rotation: rotation,
|
|
||||||
largeArc: largeArc,
|
|
||||||
clockwise: clockwise);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void relativeConicTo(double x1, double y1, double x2, double y2, double w) {
|
|
||||||
_log('relativeConicTo');
|
|
||||||
super.relativeConicTo(x1, y1, x2, y2, w);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void relativeCubicTo(
|
|
||||||
double x1, double y1, double x2, double y2, double x3, double y3) {
|
|
||||||
_log('relativeCubicTo');
|
|
||||||
super.relativeCubicTo(x1, y1, x2, y2, x3, y3);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void relativeLineTo(double dx, double dy) {
|
|
||||||
_log('relativeLineTo');
|
|
||||||
super.relativeLineTo(dx, dy);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void relativeMoveTo(double dx, double dy) {
|
|
||||||
_log('relativeMoveTo');
|
|
||||||
super.relativeMoveTo(dx, dy);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void relativeQuadraticBezierTo(double x1, double y1, double x2, double y2) {
|
|
||||||
_log('relativeQuadraticBezierTo');
|
|
||||||
super.relativeQuadraticBezierTo(x1, y1, x2, y2);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void reset() {
|
|
||||||
_log('reset');
|
|
||||||
super.reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Path shift(Offset offset) {
|
|
||||||
_log('shift');
|
|
||||||
return super.shift(offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Path transform(Float64List matrix4) {
|
|
||||||
_log('transform');
|
|
||||||
return super.transform(matrix4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
113
pubspec.lock
@ -7,14 +7,14 @@ packages:
|
|||||||
name: _fe_analyzer_shared
|
name: _fe_analyzer_shared
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "6.0.0"
|
version: "11.0.0"
|
||||||
analyzer:
|
analyzer:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: analyzer
|
name: analyzer
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.39.14"
|
version: "0.40.4"
|
||||||
archive:
|
archive:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -35,49 +35,77 @@ packages:
|
|||||||
name: async
|
name: async
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.4.2"
|
version: "2.5.0-nullsafety.1"
|
||||||
boolean_selector:
|
boolean_selector:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: boolean_selector
|
name: boolean_selector
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.0"
|
version: "2.1.0-nullsafety.1"
|
||||||
|
build:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: build
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.5.0"
|
||||||
|
built_collection:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: built_collection
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "4.3.2"
|
||||||
|
built_value:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: built_value
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "7.1.0"
|
||||||
characters:
|
characters:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: characters
|
name: characters
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.0"
|
version: "1.1.0-nullsafety.3"
|
||||||
charcode:
|
charcode:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: charcode
|
name: charcode
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.3"
|
version: "1.2.0-nullsafety.1"
|
||||||
cli_util:
|
cli_util:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: cli_util
|
name: cli_util
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.1.4"
|
version: "0.2.0"
|
||||||
clock:
|
clock:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: clock
|
name: clock
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.1"
|
version: "1.1.0-nullsafety.1"
|
||||||
|
code_builder:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: code_builder
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "3.5.0"
|
||||||
collection:
|
collection:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: collection
|
name: collection
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.14.13"
|
version: "1.15.0-nullsafety.3"
|
||||||
convert:
|
convert:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -92,27 +120,27 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.5"
|
version: "2.1.5"
|
||||||
csslib:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: csslib
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.16.2"
|
|
||||||
dart_style:
|
dart_style:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: dart_style
|
name: dart_style
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.6"
|
version: "1.3.8"
|
||||||
fake_async:
|
fake_async:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: fake_async
|
name: fake_async
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.2.0-nullsafety.1"
|
||||||
|
fixnum:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: fixnum
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.10.11"
|
||||||
flutter:
|
flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
@ -130,13 +158,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.2.0"
|
||||||
html:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: html
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.14.0+3"
|
|
||||||
js:
|
js:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -157,21 +178,21 @@ packages:
|
|||||||
name: matcher
|
name: matcher
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.8"
|
version: "0.12.10-nullsafety.1"
|
||||||
meta:
|
meta:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: meta
|
name: meta
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.8"
|
version: "1.3.0-nullsafety.3"
|
||||||
mockito:
|
mockito:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: mockito
|
name: mockito
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.1.1"
|
version: "4.1.3"
|
||||||
node_interop:
|
node_interop:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -199,14 +220,14 @@ packages:
|
|||||||
name: path
|
name: path
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.7.0"
|
version: "1.8.0-nullsafety.1"
|
||||||
pedantic:
|
pedantic:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: pedantic
|
name: pedantic
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.9.0"
|
version: "1.9.2"
|
||||||
pub_semver:
|
pub_semver:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -214,67 +235,81 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.4.4"
|
version: "1.4.4"
|
||||||
|
quiver:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: quiver
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "2.1.3"
|
||||||
sky_engine:
|
sky_engine:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.99"
|
version: "0.0.99"
|
||||||
|
source_gen:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: source_gen
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.9.7+1"
|
||||||
source_span:
|
source_span:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: source_span
|
name: source_span
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.7.0"
|
version: "1.8.0-nullsafety.2"
|
||||||
stack_trace:
|
stack_trace:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: stack_trace
|
name: stack_trace
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.9.5"
|
version: "1.10.0-nullsafety.1"
|
||||||
stream_channel:
|
stream_channel:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: stream_channel
|
name: stream_channel
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.0"
|
version: "2.1.0-nullsafety.1"
|
||||||
string_scanner:
|
string_scanner:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: string_scanner
|
name: string_scanner
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.5"
|
version: "1.1.0-nullsafety.1"
|
||||||
term_glyph:
|
term_glyph:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: term_glyph
|
name: term_glyph
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.2.0-nullsafety.1"
|
||||||
test_api:
|
test_api:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: test_api
|
name: test_api
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.17"
|
version: "0.2.19-nullsafety.2"
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: typed_data
|
name: typed_data
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.3.0-nullsafety.3"
|
||||||
vector_math:
|
vector_math:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: vector_math
|
name: vector_math
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.8"
|
version: "2.1.0-nullsafety.3"
|
||||||
watcher:
|
watcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -290,4 +325,4 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "2.2.1"
|
version: "2.2.1"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.9.0-14.0.dev <3.0.0"
|
dart: ">=2.10.0-110 <2.11.0"
|
||||||
|
12
pubspec.yaml
@ -1,27 +1,27 @@
|
|||||||
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.6.0
|
version: 0.7.0+1
|
||||||
homepage: https://github.com/xvrh/lottie-flutter
|
homepage: https://github.com/xvrh/lottie-flutter
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.7.0 <3.0.0"
|
sdk: ">=2.7.0 <3.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
|
||||||
sdk: flutter
|
|
||||||
archive: ^2.0.0
|
archive: ^2.0.0
|
||||||
characters: '>=0.5.0 <2.0.0'
|
characters: '>=0.5.0 <2.0.0'
|
||||||
charcode: ^1.0.0
|
charcode: ^1.0.0
|
||||||
collection: ^1.14.0
|
collection: ^1.14.0
|
||||||
|
flutter:
|
||||||
|
sdk: flutter
|
||||||
logging: ^0.11.0
|
logging: ^0.11.0
|
||||||
meta: ^1.1.8
|
meta: ^1.1.8
|
||||||
path: ^1.6.0
|
path: ^1.6.0
|
||||||
vector_math: ^2.0.0
|
vector_math: ^2.0.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
analyzer:
|
||||||
|
dart_style:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
analyzer: 0.39.14
|
mockito:
|
||||||
dart_style: 1.3.6
|
|
||||||
mockito: ^4.0.0
|
|
||||||
yaml:
|
yaml:
|
||||||
|