defaultDecoration function

InputDecoration defaultDecoration(
  1. BuildContext context
)

Implementation

InputDecoration defaultDecoration(BuildContext context) => InputDecoration(
  disabledBorder: UnderlineInputBorder(
    borderSide: BorderSide(color: Theme.of(context).colorScheme.onSurface, width: 0.4),
  ),
  focusedBorder: UnderlineInputBorder(
    borderSide: BorderSide(color: Theme.of(context).colorScheme.primary, width: 1),
  ),
  enabledBorder: UnderlineInputBorder(
    borderSide: BorderSide(color: Theme.of(context).colorScheme.onSurface, width: 0.4),
  ),
  labelStyle: Theme.of(
    context,
  ).textTheme.bodySmall!.copyWith(color: Theme.of(context).colorScheme.onSurface),
  hintStyle: Theme.of(context).textTheme.bodySmall!.copyWith(
    color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.2),
  ),
  counterStyle: Theme.of(
    context,
  ).textTheme.titleLarge!.copyWith(fontSize: 12, color: Theme.of(context).colorScheme.onSurface),
  errorStyle: Theme.of(
    context,
  ).textTheme.bodySmall!.copyWith(color: Theme.of(context).colorScheme.error),
  errorMaxLines: 3,
  focusedErrorBorder: UnderlineInputBorder(
    borderSide: BorderSide(color: Theme.of(context).colorScheme.error, width: 1),
  ),
  errorBorder: UnderlineInputBorder(
    borderSide: BorderSide(color: Theme.of(context).colorScheme.error, width: 1),
  ),
);