diff --git a/lib/src/rive_core/shapes/path.dart b/lib/src/rive_core/shapes/path.dart index 280deaa..06d4f67 100644 --- a/lib/src/rive_core/shapes/path.dart +++ b/lib/src/rive_core/shapes/path.dart @@ -99,8 +99,8 @@ abstract class Path extends PathBase { } List renderPoints = []; int pl = pts.length; - const arcConstant = circleConstant; - const double iarcConstant = 1.0 - arcConstant; + const double iarcConstant = 1.0 - circleConstant; + PathVertex previous = isClosed ? pts[pl - 1] : null; for (int i = 0; i < pl; i++) { PathVertex point = pts[i]; diff --git a/pubspec.lock b/pubspec.lock index 13bf620..ca477ab 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -21,7 +21,7 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety" + version: "1.0.0" charcode: dependency: transitive description: @@ -42,7 +42,7 @@ packages: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0-nullsafety" + version: "1.14.13" fake_async: dependency: transitive description: @@ -80,7 +80,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0-nullsafety" + version: "1.1.8" path: dependency: transitive description: @@ -141,13 +141,13 @@ packages: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.3.0-nullsafety" + version: "1.2.0" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety" + version: "2.0.8" sdks: - dart: ">=2.9.0-18.0 <2.9.0" + dart: ">=2.9.0-14.0.dev <3.0.0"