ButtonPanel constructor

const ButtonPanel({
  1. Key? key,
  2. required List<Widget> buttons,
})

Creates a ButtonPanel with the required list of buttons.

The buttons parameter accepts a list of Widgets, typically PanelButton instances, which are arranged in a Wrap layout. This constructor initializes the panel for immediate use in responsive UIs, ensuring buttons wrap naturally on smaller screens.

Implementation

const ButtonPanel({super.key, required this.buttons});