ButtonList constructor

const ButtonList({
  1. Key? key,
  2. MainAxisAlignment? mainAxisAlignment,
  3. EdgeInsets? padding,
  4. Axis? direction,
  5. required List<Button> buttons,
  6. required ButtonStyle buttonStyle,
})

Creates a new instance of the ButtonList widget.

The buttons parameter is required and specifies the list of Button instances to be displayed. The buttonStyle parameter is required and provides the style applied to each button in the list. The mainAxisAlignment parameter determines the alignment of the buttons within the column, with a default value of MainAxisAlignment.spaceBetween. The padding parameter specifies the padding applied to each button in the list, with a default value of EdgeInsets.all(8.0). The direction parameter determines the direction of the buttons within the column. which defaults to Axis.vertical.

Implementation

const ButtonList({
  Key? key,
  this.mainAxisAlignment,
  this.padding,
  this.direction,
  required this.buttons,
  required this.buttonStyle,
}) : super(key: key);