Skip to content

Commit 7625965

Browse files
committed
feat: update updateRenderObject method
1 parent 81166f4 commit 7625965

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/src/widget/renderbox.dart

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ class ZerkerRenderObjectWidget extends LeafRenderObjectWidget {
1515
_ZerkerBox zerkerBox = _ZerkerBox(app: app!, clip: clip ?? false);
1616
return RenderProxyBox(zerkerBox);
1717
}
18-
18+
1919
@override
20-
void updateRenderObject(BuildContext context, _ZerkerBox renderObject) {
21-
renderObject
22-
..app = app!
23-
..clip = clip ?? false;
20+
void updateRenderObject(BuildContext context, RenderProxyBox renderProxyBox) {
21+
renderProxyBox.child = _ZerkerBox(app: app!, clip: clip ?? false);
2422
}
2523
}
2624

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: Zerker is a flexible and lightweight flutter canvas graphic animati
1111
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1212
# Read more about iOS versioning at
1313
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14-
version: 2.7.7
14+
version: 2.7.8
1515
homepage: https://github.com/flutterkit/zerker
1616

1717
environment:

0 commit comments

Comments
 (0)