underline static method
Implementation
static MinInputStyle underline(MinThemeData theme) {
final colors = theme.colors;
Border bottom(Color color, {double width = 1}) => Border(
bottom: BorderSide(color: color, width: width),
);
return MinInputStyle(
idle: BoxDecoration(border: bottom(colors.border)),
focused: BoxDecoration(border: bottom(colors.ring, width: 2)),
error: BoxDecoration(border: bottom(colors.destructive, width: 2)),
disabled: BoxDecoration(border: bottom(colors.input)),
contentPadding: const EdgeInsets.symmetric(vertical: 8),
disabledForegroundColor: colors.mutedForeground,
);
}