buildOld method
Implementation
Widget buildOld(BuildContext context) {
var object=this;
return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) {
double containerWidth=0;
double containerHeight=0;
double parentWidth=constraints.maxWidth;
if(bootstrapClass.isNotEmpty){
List<String> classList=bootstrapClass.split(" ");
if(classList.isNotEmpty){
containerWidth=parentWidth*0.5;
}
}
width=containerWidth;
double freeSpace=parentWidth-containerWidth;
Simplify.debug("Parent Width : $parentWidth");
Simplify.debug("Container Width : $containerWidth");
Simplify.debug("Free Width : $freeSpace");
return ConstrainedBox(
constraints: BoxConstraints(minWidth: containerWidth,minHeight: containerHeight,maxWidth: containerWidth,maxHeight: containerHeight),
child: Container(
alignment: alignment,
child:child,
color:color,
constraints:constraints,
decoration:BoxDecoration(color: Colors.blue),
foregroundDecoration:foregroundDecoration,
margin:margin,
padding:padding,
transform:transform,
transformAlignment:transformAlignment,
width: containerWidth,
height: containerHeight,
));
});
}