build method
Implementation
@override
Widget build(BuildContext context) => Padding(
padding: padding,
child: SizedBox(
width: double.infinity,
child: ElevatedButton.icon(
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.all(12),
),
icon: FaIcon(iconData),
label: Text(
label.toUpperCase(),
overflow: TextOverflow.ellipsis,
),
onPressed: enabled ? onPressed : null,
),
),
);