radiusDecoration method

InputDecoration radiusDecoration({
  1. String? hint,
  2. required BuildContext context,
})

Implementation

InputDecoration radiusDecoration(
    {String? hint, required BuildContext context}) {
  final theme = Theme.of(context);
  return _inputDecoration!.copyWith(
    hintText: hint ?? 'Input',
    fillColor: theme.inputDecorationTheme.fillColor,
    filled: true,
    hintStyle: const TextStyle(fontSize: 12),
    contentPadding: const EdgeInsets.symmetric(horizontal: 15, vertical: 15),
    border: OutlineInputBorder(
      borderRadius: BorderRadius.circular(8),
      borderSide: BorderSide(color: theme.disabledColor),
    ),
    enabledBorder: OutlineInputBorder(
      borderRadius: BorderRadius.circular(8),
      borderSide: BorderSide(color: theme.disabledColor),
    ),
    focusedBorder: OutlineInputBorder(
      borderRadius: BorderRadius.circular(8),
      borderSide: BorderSide(color: theme.primaryColor),
    ),
  );
}