fixedWidth static method
Widget
fixedWidth(
- Widget child,
- double width,
- EdgeInsets? margin,
- EdgeInsets? padding,
- Decoration? decoration,
- Alignment? align,
Implementation
static Widget fixedWidth(Widget child, double width,
EdgeInsets? margin, EdgeInsets? padding, Decoration? decoration,
Alignment? align) {
//check aligment center
if ( align == Alignment.center ) {
return _fixedSize_alignmentCenter_width(child, width, margin, padding, decoration, align);
}
//container
var ct = Container(
width: width,
decoration: decoration,
padding: padding,
margin: margin,
child: child,
alignment: align
//test color: Colors.black
);
return ct;
}