ButtonList constructor
const
ButtonList({
- Key? key,
- MainAxisAlignment? mainAxisAlignment,
- EdgeInsets? padding,
- Axis? direction,
- required List<
Button> buttons, - 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);