BootstrapInputDecoration constructor

const BootstrapInputDecoration({
  1. Widget? icon,
  2. String? labelText,
  3. TextStyle? labelStyle,
  4. String? helperText,
  5. int? helperMaxLines,
  6. String? hintText,
  7. int? hintMaxLines,
  8. String? errorText,
  9. TextStyle? errorStyle,
  10. int? errorMaxLines,
  11. FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
  12. bool? isDense,
  13. EdgeInsetsGeometry? contentPadding,
  14. bool isCollapsed = false,
  15. Widget? prefixIcon,
  16. BoxConstraints? prefixIconConstraints,
  17. Widget? prefix,
  18. String? prefixText,
  19. TextStyle? prefixStyle,
  20. Widget? suffixIcon,
  21. Widget? suffix,
  22. String? suffixText,
  23. TextStyle? suffixStyle,
  24. BoxConstraints? suffixIconConstraints,
  25. String? counterText,
  26. Widget? counter,
  27. TextStyle? counterStyle,
  28. Color? fillColor,
  29. Color? focusColor,
  30. Color? hoverColor,
  31. InputBorder? errorBorder,
  32. InputBorder? focusedErrorBorder,
  33. InputBorder? disabledBorder,
  34. InputBorder? enabledBorder,
  35. bool enabled = true,
  36. String? semanticCounterText,
  37. bool? alignLabelWithHint,
})

Implementation

const BootstrapInputDecoration({
  Widget? icon,
  String? labelText,
  TextStyle? labelStyle,
  String? helperText,
  int? helperMaxLines,
  String? hintText,
  int? hintMaxLines,
  String? errorText,
  TextStyle? errorStyle,
  int? errorMaxLines,
  FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
  bool? isDense,
  EdgeInsetsGeometry? contentPadding,
  bool isCollapsed = false,
  Widget? prefixIcon,
  BoxConstraints? prefixIconConstraints,
  Widget? prefix,
  String? prefixText,
  TextStyle? prefixStyle,
  Widget? suffixIcon,
  Widget? suffix,
  String? suffixText,
  TextStyle? suffixStyle,
  BoxConstraints? suffixIconConstraints,
  String? counterText,
  Widget? counter,
  TextStyle? counterStyle,
  Color? fillColor,
  Color? focusColor,
  Color? hoverColor,
  InputBorder? errorBorder,
  InputBorder? focusedErrorBorder,
  InputBorder? disabledBorder,
  InputBorder? enabledBorder,
  bool enabled = true,
  String? semanticCounterText,
  bool? alignLabelWithHint,
}) : super(
        icon: icon,
        labelText: labelText,
        labelStyle: labelStyle,
        helperText: helperText,
        helperStyle: const TextStyle(
          fontSize: 14,
          color: BootstrapColors.textFormFieldHelperText,
        ),
        helperMaxLines: helperMaxLines,
        hintText: hintText,
        hintStyle: const TextStyle(
          fontSize: 14,
          color: BootstrapColors.textFormFieldHintText,
        ),
        hintMaxLines: hintMaxLines,
        errorText: errorText,
        errorStyle: errorStyle,
        errorMaxLines: errorMaxLines,
        floatingLabelBehavior: floatingLabelBehavior,
        isDense: isDense,
        contentPadding: contentPadding,
        isCollapsed: isCollapsed,
        prefixIcon: prefixIcon,
        prefixIconConstraints: prefixIconConstraints,
        prefix: prefix,
        prefixText: prefixText,
        prefixStyle: prefixStyle,
        suffixIcon: suffixIcon,
        suffix: suffix,
        suffixText: suffixText,
        suffixStyle: suffixStyle,
        suffixIconConstraints: suffixIconConstraints,
        counterText: counterText,
        counter: counter,
        counterStyle: counterStyle,
        filled: enabled ? null : true,
        fillColor: enabled ? null : BootstrapColors.grayLighter,
        focusColor: focusColor,
        hoverColor: hoverColor,
        errorBorder: errorBorder,
        focusedBorder: const OutlineInputBorder(
          borderSide: BorderSide(
            color: BootstrapColors.textFormFieldBorder,
          ),
        ),
        focusedErrorBorder: focusedErrorBorder,
        disabledBorder: disabledBorder,
        enabledBorder: enabledBorder,
        border: const OutlineInputBorder(
          borderSide: BorderSide(
            color: BootstrapColors.textFormFieldBorder,
          ),
        ),
        enabled: enabled,
        semanticCounterText: semanticCounterText,
        alignLabelWithHint: alignLabelWithHint,
      );