Skip to content

Commit 5affa04

Browse files
committed
feat: Modify the updateRenderObject function
feat: Modify the updateRenderObject function
1 parent bca917c commit 5affa04

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

lib/src/zerkerwidget.dart

+8-1
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,16 @@ class _ZerkerRenderObjectWidget extends LeafRenderObjectWidget {
9595
return RenderProxyBox(zerkerBox);
9696
}
9797

98+
// @override
99+
// void updateRenderObject(BuildContext context, RenderProxyBox renderProxyBox) {
100+
// renderProxyBox.child = _ZerkerBox(app: app!, clip: clip ?? false);
101+
// }
102+
98103
@override
99104
void updateRenderObject(BuildContext context, RenderProxyBox renderProxyBox) {
100-
renderProxyBox.child = _ZerkerBox(app: app!, clip: clip ?? false);
105+
final _ZerkerBox zerkerBox = renderProxyBox.child as _ZerkerBox;
106+
zerkerBox.updateApp(app!);
107+
zerkerBox.updateClip(clip ?? false);
101108
}
102109
}
103110

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.5
14+
version: 2.7.6
1515
homepage: https://github.com/flutterkit/zerker
1616

1717
environment:

0 commit comments

Comments
 (0)