defaultInputDecoration function

InputDecoration defaultInputDecoration({
  1. String? hint,
  2. String? label,
  3. TextStyle? textStyle,
})

Implementation

InputDecoration defaultInputDecoration(
    {String? hint, String? label, TextStyle? textStyle}) {
  return InputDecoration(
    labelText: label,
    hintText: hint,
    hintStyle: textStyle,
    labelStyle: textStyle,
    border: const OutlineInputBorder(),
    alignLabelWithHint: true,
  );
}