David PHAM-VAN

Fix CustomPaint Widget size

1 # 1.3.9 1 # 1.3.9
2 * Fix Transform Widget alignment 2 * Fix Transform Widget alignment
  3 +* Fix CustomPaint Widget size
3 4
4 # 1.3.8 5 # 1.3.8
5 * Add jpeg image loading function 6 * Add jpeg image loading function
@@ -441,8 +441,7 @@ class CustomPaint extends SingleChildWidget { @@ -441,8 +441,7 @@ class CustomPaint extends SingleChildWidget {
441 void layout(Context context, BoxConstraints constraints, 441 void layout(Context context, BoxConstraints constraints,
442 {bool parentUsesSize = false}) { 442 {bool parentUsesSize = false}) {
443 if (child != null) { 443 if (child != null) {
444 - child.layout(context, constraints.tighten(width: size.x, height: size.y),  
445 - parentUsesSize: parentUsesSize); 444 + child.layout(context, constraints, parentUsesSize: parentUsesSize);
446 assert(child.box != null); 445 assert(child.box != null);
447 box = child.box; 446 box = child.box;
448 } else { 447 } else {