build method

  1. @override
Widget build(
  1. BuildContext context
)
override

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,
        ),
      ),
    );