PaddedChildrenList constructor

const PaddedChildrenList({
  1. Key? key,
  2. required List<Widget> children,
  3. EdgeInsetsGeometry padding = const EdgeInsets.only(left: 16.0, right: 16.0, bottom: 16.0),
  4. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  5. 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,
});