Skip to content

Commit a86f799

Browse files
authored
Fix endless recursion exporting Padding widget
`export()` stucks on a padding widget as it passes itself into `DynamicWidgetBuilder.export(...)` instead of the child.
1 parent f9c1024 commit a86f799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dynamic_widget/basic/padding_widget_parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PaddingWidgetParser extends WidgetParser {
2525
return <String, dynamic>{
2626
"type": widgetName,
2727
"padding": padding!=null? "${padding.left},${padding.top},${padding.right},${padding.bottom}":null,
28-
"child": DynamicWidgetBuilder.export(realWidget, buildContext)
28+
"child": DynamicWidgetBuilder.export(realWidget.child, buildContext)
2929
};
3030
}
3131

0 commit comments

Comments
 (0)