mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-06-26 17:56:28 +08:00
Invalidate shape less aggressively.
This commit is contained in:
Binary file not shown.
@ -77,18 +77,9 @@ abstract class Path extends PathBase {
|
||||
|
||||
void markPathDirty() {
|
||||
addDirt(ComponentDirt.path);
|
||||
_shape?.pathChanged(this);
|
||||
}
|
||||
|
||||
void _invalidatePath() {
|
||||
_isValid = false;
|
||||
_cachedRenderVertices = null;
|
||||
}
|
||||
|
||||
@override
|
||||
bool addDirt(int value, {bool recurse = false}) {
|
||||
_invalidatePath();
|
||||
return super.addDirt(value, recurse: recurse);
|
||||
_shape?.pathChanged(this);
|
||||
}
|
||||
|
||||
List<PathVertex> get vertices;
|
||||
|
16
pubspec.lock
16
pubspec.lock
@ -21,7 +21,7 @@ packages:
|
||||
name: characters
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.0"
|
||||
version: "1.1.0-nullsafety"
|
||||
charcode:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -42,7 +42,7 @@ packages:
|
||||
name: collection
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.14.13"
|
||||
version: "1.15.0-nullsafety"
|
||||
fake_async:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -73,14 +73,14 @@ packages:
|
||||
name: matcher
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.12.8"
|
||||
version: "0.12.9"
|
||||
meta:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: meta
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.8"
|
||||
version: "1.3.0-nullsafety"
|
||||
path:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -134,20 +134,20 @@ packages:
|
||||
name: test_api
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.17"
|
||||
version: "0.2.18"
|
||||
typed_data:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: typed_data
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.2.0"
|
||||
version: "1.3.0-nullsafety"
|
||||
vector_math:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vector_math
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.8"
|
||||
version: "2.1.0-nullsafety"
|
||||
sdks:
|
||||
dart: ">=2.9.0-14.0.dev <3.0.0"
|
||||
dart: ">=2.9.0-18.0 <2.9.0"
|
||||
|
Reference in New Issue
Block a user