wrapContent static method
Widget
wrapContent(
- Widget child, {
- EdgeInsets? margin,
- EdgeInsets? padding,
- Decoration? decoration,
- Alignment? align,
Implementation
static Widget wrapContent(Widget child,
{ EdgeInsets? margin, EdgeInsets? padding, Decoration? decoration,
Alignment? align}) {
//container
var ct = Container(
decoration: decoration,
padding: padding,
margin: margin,
child: child,
alignment: align
//test color: Colors.black
);
/**
wrap "Container" content by surround with column
*/
return Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.start,
// crossAxisAlignment: crossAxisAlignment.,
children: [
ct
],
);
}