columnContainer static method
Container
columnContainer({
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Color color = Colors.transparent,
- CrossAxisAlignment? crossAxisAlignment,
- MainAxisAlignment? mainAxisAlignment,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- required List<
Widget> children,
Column container to display
Implementation
static Container columnContainer(
{EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
Color color = Colors.transparent,
CrossAxisAlignment? crossAxisAlignment,
MainAxisAlignment? mainAxisAlignment,
MainAxisSize mainAxisSize = MainAxisSize.max,
required List<Widget> children}) {
if (margin == null) margin = EdgeInsets.all(0);
if (crossAxisAlignment == null) {
crossAxisAlignment = CrossAxisAlignment.center;
}
if (mainAxisAlignment == null) mainAxisAlignment = MainAxisAlignment.start;
return Container(
margin: margin,
padding: padding,
color: color,
child: Column(
crossAxisAlignment: crossAxisAlignment,
mainAxisAlignment: mainAxisAlignment,
mainAxisSize: mainAxisSize,
children: children,
),
);
}