defaultInputDecoration function

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

returns default InputDecoration for AppTextField widget

Implementation

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