PaddedChildrenList constructor
const
PaddedChildrenList({
- Key? key,
- required List<
Widget> children, - EdgeInsetsGeometry padding = const EdgeInsets.only(left: 16.0, right: 16.0, bottom: 16.0),
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
Creates a PaddedChildrenList with customizable padding and alignment.
The children
parameter is required and must not be null.
The padding
parameter defaults to 16.0 pixels on the left, right, and bottom sides
if not specified.
The mainAxisAlignment
and crossAxisAlignment
parameters control the alignment
of the child widgets within the list.
Implementation
const PaddedChildrenList({
super.key,
required this.children,
this.padding = const EdgeInsets.only(left: 16.0, right: 16.0, bottom: 16.0),
this.mainAxisAlignment = MainAxisAlignment.start,
this.crossAxisAlignment = CrossAxisAlignment.start,
});