diff --git a/CHANGELOG.md b/CHANGELOG.md index e426851..5eda28f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.7.2 +- Modify the node reset registration point to 0.5. + # 2.7.1 - Add zkapp panStart panUpdate panEnd events. diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 3c03395..7ad7a91 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -14,7 +14,7 @@ description: A new Flutter project. version: 1.0.0+1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.12.0 <4.0.0" dependencies: flutter: @@ -22,7 +22,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^0.1.2 + cupertino_icons: ^1.0.6 zerker: path: ../ diff --git a/lib/src/extras/scrollbg.dart b/lib/src/extras/scrollbg.dart index 7587c1e..3decfb2 100644 --- a/lib/src/extras/scrollbg.dart +++ b/lib/src/extras/scrollbg.dart @@ -193,6 +193,12 @@ class ZKScrollBg extends ZKContainer { this.forEach((bgFrag) => bgFrag.debug = d); } + @override + void reset() { + super.reset(); + this.anchor.reset(); + } + @override void dispose() { super.dispose(); diff --git a/lib/src/node/graphic.dart b/lib/src/node/graphic.dart index b5ebac1..7d4fe0a 100755 --- a/lib/src/node/graphic.dart +++ b/lib/src/node/graphic.dart @@ -183,6 +183,12 @@ class ZKGraphic extends ZKNode { } } + @override + void reset() { + super.reset(); + this.anchor.reset(); + } + @override void dispose() { super.dispose(); diff --git a/lib/src/node/node.dart b/lib/src/node/node.dart index 7c01fe2..d562edd 100755 --- a/lib/src/node/node.dart +++ b/lib/src/node/node.dart @@ -213,7 +213,7 @@ class ZKNode { void reset() { this.position.reset(); - this.anchor.reset(); + this.anchor.set(0.5, 0.5); this.scale.reset(); this.skew.reset(); this.rotation = 0; diff --git a/pubspec.yaml b/pubspec.yaml index def2d75..0ddabba 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: Zerker is a flexible and lightweight flutter canvas graphic animati # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 2.7.1 +version: 2.7.2 homepage: https://github.com/flutterkit/zerker environment: