errorTagButtonStyle static method
- BuildContext context
Error button style for an ElevatedButton that matches the Kohler "tag" widget style usually used for status labels.
Implementation
static ButtonStyle errorTagButtonStyle(BuildContext context) {
return ElevatedButton.styleFrom(
backgroundColor: context.colorScheme.errorContainer,
foregroundColor: context.colorScheme.onErrorContainer,
textStyle: context.textTheme.labelSmall,
padding: const EdgeInsets.symmetric(vertical: 2.0, horizontal: 12.0),
minimumSize: Size.zero,
elevation: 0.0,
shape: const StadiumBorder(),
);
}