labelStyle function
This centralizes the style calculations for field labels, used by almost all widgets in this package
Implementation
TextStyle? labelStyle(BuildContext context, bool enabled) {
var theme = Theme.of(context);
var style = theme.textTheme.titleMedium;
if (!enabled) style = style?.copyWith(color: theme.disabledColor);
return style;
}