TagInputLayout enum
Defines the layout options for displaying tags in a TagField.
This enum provides different layout strategies for arranging tags within or around the input field, offering flexibility in UI design.
Each layout option affects how tags are positioned relative to the input field and how they wrap or flow when there are multiple tags.
Values
- wrap → const TagInputLayout
-
Tags wrap into multiple lines within the available space.
This is the default layout where tags flow horizontally and wrap to new lines when they exceed the container width.
- inline → const TagInputLayout
-
Tags flow inline with the input field in a single line.
Tags are displayed horizontally in a single row, potentially requiring horizontal scrolling if they exceed the container width.
- column → const TagInputLayout
-
Tags are stacked vertically in a column layout.
Each tag is placed on its own line, creating a vertical list of tags that takes up more vertical space but ensures readability.
- insideBelow → const TagInputLayout
-
Tags or suggestions are shown inside the input field area, below the input.
This layout places tags within the input field's bounds, underneath the text input line, keeping everything contained within the field.
- outsideAbove → const TagInputLayout
-
Tags or suggestions are shown outside and above the input field.
Tags are displayed in a separate area above the input field, providing clear visual separation between tags and input.
- outsideBelow → const TagInputLayout
-
Tags or suggestions are shown outside and below the input field.
Tags are displayed in a separate area below the input field, which is useful for showing suggestions or completed tags.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
TagInputLayout> - A constant List of the values in this enum, in order of their declaration.