From a86f79997e11aac3f6f2c8d9a0604027424bb488 Mon Sep 17 00:00:00 2001 From: alekseichuk Date: Tue, 15 Dec 2020 01:27:45 +0000 Subject: [PATCH] Fix endless recursion exporting Padding widget `export()` stucks on a padding widget as it passes itself into `DynamicWidgetBuilder.export(...)` instead of the child. --- lib/dynamic_widget/basic/padding_widget_parser.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_widget/basic/padding_widget_parser.dart b/lib/dynamic_widget/basic/padding_widget_parser.dart index 7299ec9..9875988 100644 --- a/lib/dynamic_widget/basic/padding_widget_parser.dart +++ b/lib/dynamic_widget/basic/padding_widget_parser.dart @@ -25,7 +25,7 @@ class PaddingWidgetParser extends WidgetParser { return { "type": widgetName, "padding": padding!=null? "${padding.left},${padding.top},${padding.right},${padding.bottom}":null, - "child": DynamicWidgetBuilder.export(realWidget, buildContext) + "child": DynamicWidgetBuilder.export(realWidget.child, buildContext) }; }