fixedSize static method

Widget fixedSize(
  1. Widget child,
  2. Size fixedSize,
  3. EdgeInsets? margin,
  4. EdgeInsets? padding,
  5. Decoration? decoration,
  6. Alignment? align,
)

Implementation

static Widget fixedSize(Widget child, Size fixedSize,
    EdgeInsets? margin, EdgeInsets? padding, Decoration? decoration,
    Alignment? align) {


  //check aligment center
  if ( align == Alignment.center ) {
    return  _fixedSize_alignmentCenter(child, fixedSize, margin, padding, decoration, align);
  }

  //container
  var ct = Container(
    width: fixedSize.width,
      height: fixedSize.height,
      decoration: decoration,
      padding: padding,
      margin: margin,
      child: child,
      alignment: align
    //test  color:  Colors.black
  );


  return ct;
}