buildChild method

void buildChild()

It builds the responsive child

Implementation

void buildChild(){
  double tmpCounter = this.currentCounter + this.currentSize;
  if(tmpCounter >= this.maxWidth){
    this.finals.add(
        Row(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: List<Widget>.generate(this.tmpChildren.length, ((index) => this.tmpChildren[index])),
        )
    );
    this.tmpChildren = [tmpWidget];
    this.currentCounter = currentSize;
  }
  else{
    this.tmpChildren.add(tmpWidget);
    this.currentCounter += currentSize;
  }
}