PanelButton constructor
const
PanelButton({
- Key? key,
- required IconData icon,
- required String label,
- required VoidCallback onPressed,
Constructs a PanelButton with the specified icon, label, and press handler.
icondefines the leading icon displayed via FancyIcon, providing visual identification.labelsets the textual description below the icon for accessibility and clarity.onPressedis 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});