basicInputDecoration function

InputDecoration basicInputDecoration(
  1. BuildContext context, {
  2. bool? enabled,
  3. bool? isDense,
  4. bool? filled,
  5. Color? fillColor,
  6. Color? hoverColor,
  7. Widget? prefixIcon,
  8. Widget? suffixIcon,
  9. EdgeInsets? contentPadding,
  10. InputBorder? enabledBorder,
  11. InputBorder? focusedBorder,
  12. InputBorder? disabledBorder,
  13. InputBorder? errorBorder,
  14. InputBorder? focusedErrorBorder,
  15. String? labelText,
  16. TextStyle? labelStyle,
  17. TextStyle? floatingLabelStyle,
  18. FloatingLabelBehavior? floatingLabelBehavior,
  19. String? hintText,
  20. TextStyle? hintStyle,
  21. String? errorText,
  22. int? errorMaxLines,
  23. TextStyle? errorStyle,
  24. InputBorder? border,
})

Implementation

InputDecoration basicInputDecoration(
  BuildContext context, {
  bool? enabled,
  bool? isDense,
  bool? filled,
  Color? fillColor,
  Color? hoverColor,
  Widget? prefixIcon,
  Widget? suffixIcon,
  EdgeInsets? contentPadding,
  InputBorder? enabledBorder,
  InputBorder? focusedBorder,
  InputBorder? disabledBorder,
  InputBorder? errorBorder,
  InputBorder? focusedErrorBorder,
  String? labelText,
  TextStyle? labelStyle,
  TextStyle? floatingLabelStyle,
  FloatingLabelBehavior? floatingLabelBehavior,
  String? hintText,
  TextStyle? hintStyle,
  String? errorText,
  int? errorMaxLines,
  TextStyle? errorStyle,
  InputBorder? border,
}) =>
    InputDecoration(
      isDense: isDense,
      filled: filled,
      fillColor: enabled != null && !enabled
          ? context.theme.inputDecorationTheme.disabledBorder?.borderSide.color
          : fillColor,
      hoverColor: hoverColor,
      prefixIcon: prefixIcon,
      suffixIcon: suffixIcon,
      contentPadding: contentPadding,
      enabledBorder: enabledBorder,
      focusedBorder: focusedBorder,
      disabledBorder: disabledBorder,
      errorBorder: errorBorder,
      focusedErrorBorder: focusedErrorBorder,
      labelText: labelText,
      labelStyle: labelStyle,
      floatingLabelStyle: floatingLabelStyle,
      floatingLabelBehavior: floatingLabelBehavior,
      hintText: hintText,
      hintStyle: hintStyle,
      errorText: errorText,
      errorMaxLines: errorMaxLines,
      errorStyle: errorStyle,
      border: border,
    );