Skip to content

Commit

Permalink
export constraints, it also represent width and height of container
Browse files Browse the repository at this point in the history
  • Loading branch information
Revitate committed Nov 20, 2020
1 parent 71bf2ed commit 05759a0
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 113 deletions.
11 changes: 3 additions & 8 deletions lib/dynamic_widget/basic/container_widget_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,9 @@ class ContainerWidgetParser extends WidgetParser {
"margin": margin != null
? "${margin.left},${margin.top},${margin.right},${margin.bottom}"
: null,
"width":
constraints != null && constraints.minWidth == constraints.maxWidth
? constraints.minWidth
: null,
"height":
constraints != null && constraints.minHeight == constraints.maxHeight
? constraints.minHeight
: null,
"constraints": constraints!= null
? exportConstraints(constraints)
: null,
"child": DynamicWidgetBuilder.export(realWidget.child, buildContext)
};
}
Expand Down
Loading

0 comments on commit 05759a0

Please sign in to comment.