defaultInputDecoration function Default widgets

InputDecoration defaultInputDecoration({
  1. String hintText = 'Write a message...',
  2. TextStyle hintStyle = const TextStyle(color: Colors.grey),
  3. Color? fillColor,
})

Implementation

InputDecoration defaultInputDecoration({
  String hintText = 'Write a message...',
  TextStyle hintStyle = const TextStyle(color: Colors.grey),
  Color? fillColor,
}) =>
    InputDecoration(
      isDense: true,
      hintText: hintText,
      hintStyle: hintStyle,
      filled: true,
      fillColor: fillColor ?? Colors.grey[100],
      contentPadding: const EdgeInsets.only(
        left: 18,
        top: 10,
        bottom: 10,
      ),
      border: OutlineInputBorder(
        borderRadius: BorderRadius.circular(25),
        borderSide: const BorderSide(
          width: 0,
          style: BorderStyle.none,
        ),
      ),
    );