columnContainer static method

Container columnContainer({
  1. EdgeInsetsGeometry? margin,
  2. EdgeInsetsGeometry? padding,
  3. Color color = Colors.transparent,
  4. CrossAxisAlignment? crossAxisAlignment,
  5. MainAxisAlignment? mainAxisAlignment,
  6. MainAxisSize mainAxisSize = MainAxisSize.max,
  7. 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,
    ),
  );
}