toInputDecoration method

InputDecoration toInputDecoration()

Implementation

InputDecoration toInputDecoration() {
  return InputDecoration(
    floatingLabelAlignment: FloatingLabelAlignment.start,
    floatingLabelBehavior: FloatingLabelBehavior.auto,
    floatingLabelStyle: floatingLabelStyle(enabled: enabled, error: error),
    alignLabelWithHint: alignLabelWithHint,
    labelStyle: textStyle(enabled),
    isDense: textfieldSize.isDense,
    contentPadding: textfieldSize.contentPadding,
    focusColor: focusedColor,
    fillColor: getFillColor(enabled: enabled, error: error),
    filled: filled,
    focusedBorder: focusedBorder(textfieldSize),
    border: border(textfieldSize),
    disabledBorder: disabledBorder(textfieldSize),
    errorBorder: errorBorder(textfieldSize),
    focusedErrorBorder: errorBorder(textfieldSize),
  );
}