Lenra Docs
Register on Lenra
  • Home
  • Getting started
    Open/Close
  • Guides
    Open/Close
  • Features
    Open/Close
  • References
    Open/Close
  • Contribute

    InputDecoration

    AttributeDescriptionType
    alignLabelWithHintWhether to align the label with the hint or not. Defaults to false.boolean
    borderThe border to display around the input. Will render a border by default when border is null.InputBorder
    constraintsThe constraints to be applied to the input.BoxConstraints
    contentPaddingThe padding to be applied to the input.Padding
    countercomponent
    counterStyleThe style use for the counterText.TextStyle
    counterTextThe text to place below the line as a character counter.string
    disabledBorderThe border to display when the input is disabled and not showing an error.InputBorder
    enabledWhether the input is enabled or disabled.boolean
    enabledBorderThe border to display when the input is enabled and not showing an error.InputBorder
    errorBorderThe border to display when the input has an error and does not have the focus.InputBorder
    errorMaxLinesThe maximum number of lines the error text can use.integer
    errorStyleThe style to use for the error text.TextStyle
    errorTextThe error text to display when the input has an error.string
    fillColorThe fill color of the input.integer
    filledWhether the input is filled with fillColor.boolean
    floatingLabelBehaviorDefines how the floating label should be displayed.string
    • always
    • auto
    • never
    floatingLabelStyleThe style to use for the floating label.TextStyle
    focusColorThe color to use when the input is focused.integer
    focusedBorderThe border to display when the input has the focus.InputBorder
    focusedErrorBorderThe border to display when the input has the focus and has an error.InputBorder
    helperMaxLinesThe maximum number of lines the helper text can use.integer
    helperStyleThe style to use for the helper text.TextStyle
    helperTextThe helper text to display.string
    hintMaxLinesThe maximum number of lines the hint text can use.integer
    hintStyleThe style to use for the hint text.TextStyle
    hintTextThe hint text to display.string
    hintTextDirectionThe direction of the hint text.string
    • ltr
    • rtl
    hoverColorThe color to use when the input is hovered.integer
    iconThe Icon to useIcon
    iconColorThe color for the iconinteger
    isCollapsedWhether the decoration is the same size as the input field.boolean
    isDenseWhether the decoration is dense.boolean
    labelAny componentComponent
    labelStyleThe style to use for the label.TextStyle
    labelTextThe text that describes the input field.string
    prefixAny componentComponent
    prefixIconThe Icon to useIcon
    prefixIconColorthe color of the prefixIconinteger
    prefixIconConstraintsThe constraints for the prefixIcon.BoxConstraints
    prefixStyleThe style to use for the prefixText.TextStyle
    prefixTextThe text to display before the input.string
    semanticCounterTextThe semantic label for the counterText.string
    suffixcomponent
    suffixIconThe Icon to useIcon
    suffixIconColorthe color of the sufficIconinteger
    suffixIconConstraintsThe constraints for the suffixIcon.BoxConstraints
    suffixStyleThe style to use for the suffixText.TextStyle
    suffixTextThe text to display after the input.string