Skip to content

Commit

Permalink
Fix endless recursion exporting Padding widget
Browse files Browse the repository at this point in the history
`export()` stucks on a padding widget as it passes itself into `DynamicWidgetBuilder.export(...)` instead of the child.
  • Loading branch information
alekseichuk authored Dec 15, 2020
1 parent f9c1024 commit a86f799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dynamic_widget/basic/padding_widget_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PaddingWidgetParser extends WidgetParser {
return <String, dynamic>{
"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)
};
}

Expand Down

0 comments on commit a86f799

Please sign in to comment.