📝 替换项目中的所有var

This commit is contained in:
toly
2020-10-21 16:06:38 +08:00
parent b837084305
commit 07a97df5b2
159 changed files with 405 additions and 417 deletions

View File

@@ -74,15 +74,15 @@ class CornerCustomMultiChildLayout extends MultiChildLayoutDelegate{
positionChild(CornerType.topLeft, Offset.zero.translate(padding.left, padding.top));
}
if (hasChild(CornerType.topRight)) {
var childSize = layoutChild(CornerType.topRight, BoxConstraints.loose(size));
Size childSize = layoutChild(CornerType.topRight, BoxConstraints.loose(size));
positionChild(CornerType.topRight, Offset(size.width-childSize.width,0).translate(-padding.right, padding.top));
}
if (hasChild(CornerType.bottomLeft)) {
var childSize = layoutChild(CornerType.bottomLeft, BoxConstraints.loose(size));
Size childSize = layoutChild(CornerType.bottomLeft, BoxConstraints.loose(size));
positionChild(CornerType.bottomLeft, Offset(0,size.height-childSize.height).translate(padding.left, -padding.bottom));
}
if (hasChild(CornerType.bottomRight)) {
var childSize = layoutChild(CornerType.bottomRight, BoxConstraints.loose(size));
Size childSize = layoutChild(CornerType.bottomRight, BoxConstraints.loose(size));
positionChild(CornerType.bottomRight, Offset(size.width-childSize.width,size.height-childSize.height).translate(-padding.right, -padding.bottom));
}
}