diff --git a/lib/src/widgets/others/proxy.dart b/lib/src/widgets/others/proxy.dart index 3e929286..9504a11f 100644 --- a/lib/src/widgets/others/proxy.dart +++ b/lib/src/widgets/others/proxy.dart @@ -299,4 +299,10 @@ class RenderParagraphProxy extends RenderProxyBox _prototypePainter.layout( minWidth: constraints.minWidth, maxWidth: constraints.maxWidth); } + + @override + void dispose() { + super.dispose(); + _prototypePainter.dispose(); + } }