PanelButton constructor

const PanelButton({
  1. Key? key,
  2. required IconData icon,
  3. required String label,
  4. required VoidCallback onPressed,
})

Constructs a PanelButton with the specified icon, label, and press handler.

  • icon defines the leading icon displayed via FancyIcon, providing visual identification.
  • label sets the textual description below the icon for accessibility and clarity.
  • onPressed is the callback executed on tap, enabling custom actions like navigation or form submissions. The button automatically adjusts size based on screen width for mobile and desktop responsiveness.

Implementation

const PanelButton(
    {super.key,
    required this.icon,
    required this.label,
    required this.onPressed});