getContainer static method

Widget getContainer(
  1. Widget child,
  2. double? width,
  3. EdgeInsets? margin,
  4. Decoration? decoration_background,
)

Implementation

static Widget getContainer(Widget child, double? width, EdgeInsets? margin, Decoration? decoration_background) {

  //fixed width
  if( width != null ){
    return ContainerTemplate.fixedWidth(child, width, margin, null, decoration_background, null );
  }

  //default
  var ct = ContainerTemplate.wrapContent( child, margin: margin,  decoration:  decoration_background  );
  return ct;
}