DoubleColumn constructor

const DoubleColumn({
  1. Key? key,
  2. CrossAxisAlignment columnCrossAxisAlignment = CrossAxisAlignment.center,
  3. MainAxisAlignment columnMainAxisAlignment = MainAxisAlignment.start,
  4. MainAxisSize columnSize = MainAxisSize.min,
  5. List<Widget>? leftColumn,
  6. int? leftFlex,
  7. List<Widget>? rightColumn,
  8. int? rightFlex,
  9. CrossAxisAlignment rowCrossAxisAlignment = CrossAxisAlignment.center,
  10. MainAxisAlignment rowMainAxisAlignment = MainAxisAlignment.start,
  11. MainAxisSize rowSize = MainAxisSize.max,
  12. double spaceBeetween = 20,
})

It's create a double column with a space beetween.

return Row(children: [
  Column(children: leftColumn),
  SizedBox(width: spaceBeetween),
  Column(children: rightColumn),
]);

Implementation

const DoubleColumn({
  Key? key,
  this.columnCrossAxisAlignment = CrossAxisAlignment.center,
  this.columnMainAxisAlignment = MainAxisAlignment.start,
  this.columnSize = MainAxisSize.min,
  this.leftColumn,
  this.leftFlex,
  this.rightColumn,
  this.rightFlex,
  this.rowCrossAxisAlignment = CrossAxisAlignment.center,
  this.rowMainAxisAlignment = MainAxisAlignment.start,
  this.rowSize = MainAxisSize.max,
  this.spaceBeetween = 20,
}) : super(key: key);