Skip to content

Commit

Permalink
fix check null constraints in container
Browse files Browse the repository at this point in the history
  • Loading branch information
Revitate committed Nov 19, 2020
1 parent 6702081 commit 6bbc1b9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/dynamic_widget/basic/container_widget_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ class ContainerWidgetParser extends WidgetParser {
"margin": margin != null
? "${margin.left},${margin.top},${margin.right},${margin.bottom}"
: null,
"width": constraints.minWidth == constraints.maxWidth
? constraints.minWidth
: null,
"height": constraints.minHeight == constraints.maxHeight
? constraints.minHeight
: null,
"width":
constraints != null && constraints.minWidth == constraints.maxWidth
? constraints.minWidth
: null,
"height":
constraints != null && constraints.minHeight == constraints.maxHeight
? constraints.minHeight
: null,
"child": DynamicWidgetBuilder.export(realWidget.child, buildContext)
};
}
Expand Down

0 comments on commit 6bbc1b9

Please sign in to comment.