buttonWithIconPadding property

EdgeInsets get buttonWithIconPadding

Padding for a button-style button with an icon

Can be used for button style buttons with icons such as TextButton.icon, OutlinedButton.icon or ElevatedButton.icon to use a suitable padding value, as the default padding in Material 3 is relatively large.

Unfortunately, padding for buttons with icons cannot be set on a theme level. This padding must be set manually where deemed applicable.

Implementation

static EdgeInsets get buttonWithIconPadding => const EdgeInsets.all(8.0);