Invalidate shape less aggressively.

This commit is contained in:
Luigi Rosso
2020-07-21 19:48:48 -07:00
parent a9ea5f06c5
commit c71fa9ecde
3 changed files with 9 additions and 18 deletions

Binary file not shown.

View File

@ -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;

View File

@ -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"