DoubleColumn constructor
const
DoubleColumn({
- Key? key,
- CrossAxisAlignment columnCrossAxisAlignment = CrossAxisAlignment.center,
- MainAxisAlignment columnMainAxisAlignment = MainAxisAlignment.start,
- MainAxisSize columnSize = MainAxisSize.min,
- List<
Widget> ? leftColumn, - int? leftFlex,
- List<
Widget> ? rightColumn, - int? rightFlex,
- CrossAxisAlignment rowCrossAxisAlignment = CrossAxisAlignment.center,
- MainAxisAlignment rowMainAxisAlignment = MainAxisAlignment.start,
- MainAxisSize rowSize = MainAxisSize.max,
- 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);