TextArea class
A multi-line text input widget with resizable dimensions and comprehensive styling.
TextArea provides an enhanced text editing experience with support for multi-line input, dynamic resizing capabilities, and extensive customization options. It supports both expandable height and width modes, allowing users to adjust the text area size by dragging resize handles.
Key features:
- Multi-line text editing with optional height/width expansion
- Configurable minimum and maximum dimensions
- Support for leading and trailing widgets
- Comprehensive text formatting and input validation
- Integration with Flutter's text editing ecosystem
- Customizable appearance through theming
The widget can operate in several resize modes:
- Fixed size: When both expandableHeight and expandableWidth are false
- Expandable height: When expandableHeight is true, allows vertical resizing
- Expandable width: When expandableWidth is true, allows horizontal resizing
- Fully expandable: When both expansion modes are enabled
Example:
TextArea(
placeholder: Text('Enter your message...'),
expandableHeight: true,
minHeight: 100,
maxHeight: 300,
onChanged: (text) => print('Text: $text'),
);
- Inheritance
- Available extensions
Constructors
-
TextArea({Key? key, Object groupId = EditableText, TextEditingController? controller, FocusNode? focusNode, BoxDecoration? decoration, EdgeInsetsGeometry? padding, Widget? placeholder, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, String? clearButtonSemanticLabel, TextInputType? keyboardType, TextInputAction? textInputAction, TextCapitalization textCapitalization = TextCapitalization.none, TextStyle? style, StrutStyle? strutStyle, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, TextDirection? textDirection, bool readOnly = false, bool? showCursor, bool autofocus = false, String obscuringCharacter = '•', bool obscureText = false, bool autocorrect = true, SmartDashesType smartDashesType = SmartDashesType.enabled, SmartQuotesType smartQuotesType = SmartQuotesType.enabled, bool enableSuggestions = true, int? maxLines = 1, int? minLines, bool expands = false, int? maxLength, MaxLengthEnforcement? maxLengthEnforcement, ValueChanged<
String> ? onChanged, VoidCallback? onEditingComplete, ValueChanged<String> ? onSubmitted, TapRegionCallback? onTapOutside, TapRegionCallback? onTapUpOutside, List<TextInputFormatter> ? inputFormatters, bool enabled = true, double cursorWidth = 2.0, double? cursorHeight, Radius cursorRadius = const Radius.circular(2.0), bool cursorOpacityAnimates = true, Color? cursorColor, BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), bool enableInteractiveSelection = true, TextSelectionControls? selectionControls, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollController? scrollController, ScrollPhysics? scrollPhysics, GestureTapCallback? onTap, Iterable<String> ? autofillHints = const [], Clip clipBehavior = Clip.hardEdge, String? restorationId, bool stylusHandwritingEnabled = EditableText.defaultStylusHandwritingEnabled, bool enableIMEPersonalizedLearning = true, ContentInsertionConfiguration? contentInsertionConfiguration, EditableTextContextMenuBuilder? contextMenuBuilder, String? initialValue, String? hintText, Border? border, BorderRadiusGeometry? borderRadius, bool? filled, WidgetStatesController? statesController, TextMagnifierConfiguration? magnifierConfiguration, SpellCheckConfiguration? spellCheckConfiguration, UndoHistoryController? undoController, List<InputFeature> features = const [], List<TextInputFormatter> ? submitFormatters = const [], bool skipInputFeatureFocusTraversal = false, bool expandableHeight = false, bool expandableWidth = false, double initialHeight = 100, double initialWidth = double.infinity, ValueChanged<double> ? onHeightChanged, ValueChanged<double> ? onWidthChanged, double minWidth = 100, double minHeight = 100, double maxWidth = double.infinity, double maxHeight = double.infinity}) -
Creates a TextArea with comprehensive configuration options.
const
Properties
- asBuilder → NeverWidgetBuilder
-
Available on Widget, provided by the WidgetExtension extension
Converts this widget to a builder function.no setter - autocorrect → bool
-
Whether to enable autocorrection.
finalinherited
-
autofillHints
→ Iterable<
String> ? -
Autofill hints for the platform.
finalinherited
- autofocus → bool
-
Whether to auto-focus on mount.
finalinherited
- base → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies base (default) font size.no setter - black → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies black font weight (900).no setter - blockQuote → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies block quote style with left border.no setter - bold → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies bold font weight (700).no setter - border → Border?
-
Border styling.
finalinherited
- borderRadius → BorderRadiusGeometry?
-
Border radius.
finalinherited
- clearButtonSemanticLabel → String?
-
Semantic label for the clear button.
finalinherited
- clipBehavior → Clip
-
Clip behavior.
finalinherited
- contentInsertionConfiguration → ContentInsertionConfiguration?
-
Content insertion configuration.
finalinherited
- contextMenuBuilder → EditableTextContextMenuBuilder?
-
Context menu builder.
finalinherited
- controller → TextEditingController?
-
Text editing controller for the input.
finalinherited
- crossAxisAlignment → CrossAxisAlignment
-
Cross-axis alignment for content.
finalinherited
- cursorColor → Color?
-
Color of the cursor.
finalinherited
- cursorHeight → double?
-
Height of the cursor.
finalinherited
- cursorOpacityAnimates → bool
-
Whether cursor opacity animates.
finalinherited
- cursorRadius → Radius
-
Radius of the cursor.
finalinherited
- cursorWidth → double
-
Width of the cursor.
finalinherited
- decoration → BoxDecoration?
-
Box decoration for the input container.
finalinherited
- dragStartBehavior → DragStartBehavior
-
Drag start behavior.
finalinherited
- ellipsis → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies ellipsis overflow to text.no setter - enabled → bool
-
Whether the input is enabled.
finalinherited
- enableIMEPersonalizedLearning → bool
-
Whether IME personalized learning is enabled.
finalinherited
- enableInteractiveSelection → bool
-
Whether interactive selection is enabled.
finalinherited
- enableSuggestions → bool
-
Whether to enable suggestions.
finalinherited
- expandableHeight → bool
-
Whether the text area can be resized vertically by the user.
final
- expandableWidth → bool
-
Whether the text area can be resized horizontally by the user.
final
- expands → bool
-
Whether the input should expand to fill available space.
finalinherited
- extraBold → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies extra-bold font weight (800).no setter - extraLight → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies extra-light font weight (200).no setter -
features
→ List<
InputFeature> -
List of input features.
finalinherited
- filled → bool?
-
Whether the input has a filled background.
finalinherited
- firstP → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies paragraph style for the first paragraph (no top spacing).no setter - focusNode → FocusNode?
-
Focus node for keyboard focus management.
finalinherited
- foreground → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies standard foreground color.no setter - groupId → Object
-
Group identifier for related text inputs.
finalinherited
- h1 → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies heading 1 style.no setter - h2 → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies heading 2 style with bottom border.no setter - h3 → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies heading 3 style.no setter - h4 → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies heading 4 style.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → String?
-
Hint text displayed when empty.
finalinherited
- iconDestructiveForeground → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with destructive foreground color.no setter - iconLarge → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with large size theme.no setter - iconMedium → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with medium size theme.no setter - iconMutedForeground → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with muted foreground color.no setter - iconPrimary → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with primary color.no setter - iconPrimaryForeground → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with primary foreground color.no setter - iconSecondary → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with secondary color.no setter - iconSecondaryForeground → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with secondary foreground color.no setter - iconSmall → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with small size theme.no setter - iconX2Large → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with extra-extra large size theme.no setter - iconX2Small → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with extra-extra small size theme.no setter - iconX3Large → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with extra-extra-extra large size theme.no setter - iconX3Small → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with extra-extra-extra small size theme.no setter - iconX4Large → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with extra-extra-extra-extra large size theme.no setter - iconX4Small → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with extra-extra-extra-extra small size theme.no setter - iconXLarge → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with extra large size theme.no setter - iconXSmall → WrappedIcon
-
Available on Widget, provided by the IconExtension extension
Wraps the icon with extra small size theme.no setter - initialHeight → double
-
Initial height of the text area in logical pixels.
final
- initialValue → String?
-
Initial value for the input.
finalinherited
- initialWidth → double
-
Initial width of the text area in logical pixels.
final
- inlineCode → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies inline code style with background and padding.no setter -
inputFormatters
→ List<
TextInputFormatter> ? -
Input formatters for text.
finalinherited
- italic → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies italic font style.no setter - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardAppearance → Brightness?
-
Keyboard appearance brightness.
finalinherited
- keyboardType → TextInputType?
-
Type of keyboard to show.
finalinherited
- large → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies large font size.no setter - lead → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies lead paragraph style with muted color.no setter - li → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies list item style with bullet point.no setter - light → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies light font weight (300).no setter - magnifierConfiguration → TextMagnifierConfiguration?
-
Magnifier configuration.
finalinherited
- maxHeight → double
-
Maximum allowed height in logical pixels.
final
- maxLength → int?
-
Maximum character length.
finalinherited
- maxLengthEnforcement → MaxLengthEnforcement?
-
How to enforce max length.
finalinherited
- maxLines → int?
-
Maximum number of lines.
finalinherited
- maxWidth → double
-
Maximum allowed width in logical pixels.
final
- medium → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies medium font weight (500).no setter - minHeight → double
-
Minimum allowed height in logical pixels.
final
- minLines → int?
-
Minimum number of lines.
finalinherited
- minWidth → double
-
Minimum allowed width in logical pixels.
final
- modify → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies primary foreground color modifier.no setter - mono → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies monospace font family.no setter - muted → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies muted foreground color.no setter - normal → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies normal font weight (400).no setter - obscureText → bool
-
Whether to obscure text (password fields).
finalinherited
- obscuringCharacter → String
-
Character used for obscuring text.
finalinherited
-
onChanged
→ ValueChanged<
String> ? -
Callback when text changes.
finalinherited
- onEditingComplete → VoidCallback?
-
Callback when editing is complete.
finalinherited
-
onHeightChanged
→ ValueChanged<
double> ? -
Callback invoked when the text area height changes.
final
-
onSubmitted
→ ValueChanged<
String> ? -
Callback when text is submitted.
finalinherited
- onTap → VoidCallback?
-
Callback when tapped.
finalinherited
- onTapOutside → TapRegionCallback?
-
Callback when tapped outside.
finalinherited
- onTapUpOutside → TapRegionCallback?
-
Callback when tap up occurs outside.
finalinherited
-
onWidthChanged
→ ValueChanged<
double> ? -
Callback invoked when the text area width changes.
final
- p → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies paragraph style with top spacing.no setter - padding → EdgeInsetsGeometry?
-
Padding inside the input.
finalinherited
- placeholder → Widget?
-
Placeholder widget shown when empty.
finalinherited
- primaryForeground → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies primary foreground color.no setter - readOnly → bool
-
Whether the input is read-only.
finalinherited
- restorationId → String?
-
Restoration ID for state restoration.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sans → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies sans-serif font family.no setter - scrollController → ScrollController?
-
Scroll controller.
finalinherited
- scrollPadding → EdgeInsets
-
Scroll padding for keyboard avoidance.
finalinherited
- scrollPhysics → ScrollPhysics?
-
Scroll physics.
finalinherited
- secondaryForeground → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies secondary foreground color.no setter - selectionControls → TextSelectionControls?
-
Controls for text selection.
finalinherited
- selectionHeightStyle → BoxHeightStyle
-
Selection height style.
finalinherited
- selectionWidthStyle → BoxWidthStyle
-
Selection width style.
finalinherited
- semiBold → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies semi-bold font weight (600).no setter - showCursor → bool?
-
Whether to show the cursor.
finalinherited
- singleLine → TextModifier
-
Available on Widget, provided by the TextExtension extension
Constrains text to a single line without wrapping.no setter - skipInputFeatureFocusTraversal → bool
-
Whether to skip focus traversal for input features.
finalinherited
- small → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies small font size.no setter - smartDashesType → SmartDashesType
-
Smart dashes behavior.
finalinherited
- smartQuotesType → SmartQuotesType
-
Smart quotes behavior.
finalinherited
- spellCheckConfiguration → SpellCheckConfiguration?
-
Spell check configuration.
finalinherited
- statesController → WidgetStatesController?
-
Widget states controller.
finalinherited
- strutStyle → StrutStyle?
-
Strut style for text layout.
finalinherited
- style → TextStyle?
-
Text style for input content.
finalinherited
- stylusHandwritingEnabled → bool
-
Whether stylus handwriting is enabled.
finalinherited
-
submitFormatters
→ List<
TextInputFormatter> ? -
Input formatters applied on submit.
finalinherited
- textAlign → TextAlign
-
Horizontal text alignment.
finalinherited
- textAlignVertical → TextAlignVertical?
-
Vertical text alignment.
finalinherited
- textCapitalization → TextCapitalization
-
Text capitalization behavior.
finalinherited
- textCenter → TextModifier
-
Available on Widget, provided by the TextExtension extension
Centers text horizontally.no setter - textDirection → TextDirection?
-
Text direction.
finalinherited
- textEnd → TextModifier
-
Available on Widget, provided by the TextExtension extension
Aligns text to the end (right in LTR, left in RTL).no setter - textInputAction → TextInputAction?
-
Action button on the keyboard.
finalinherited
- textJustify → TextModifier
-
Available on Widget, provided by the TextExtension extension
Justifies text alignment.no setter - textLarge → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies large text style.no setter - textLeft → TextModifier
-
Available on Widget, provided by the TextExtension extension
Left-aligns text.no setter - textMuted → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies muted text style with muted color.no setter - textRight → TextModifier
-
Available on Widget, provided by the TextExtension extension
Right-aligns text.no setter - textSmall → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies small text style.no setter - textStart → TextModifier
-
Available on Widget, provided by the TextExtension extension
Aligns text to the start (left in LTR, right in RTL).no setter - thin → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies thin font weight (100).no setter - underline → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies underline text decoration.no setter - undoController → UndoHistoryController?
-
Undo history controller.
finalinherited
- x2Large → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies 2x large font size.no setter - x3Large → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies 3x large font size.no setter - x4Large → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies 4x large font size.no setter - x5Large → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies 5x large font size.no setter - x6Large → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies 6x large font size.no setter - x7Large → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies 7x large font size.no setter - x8Large → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies 8x large font size.no setter - x9Large → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies 9x large font size.no setter - xLarge → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies extra-large font size.no setter - xSmall → TextModifier
-
Available on Widget, provided by the TextExtension extension
Applies extra-small font size.no setter
Methods
-
asSkeleton(
{bool enabled = true, bool leaf = false, Widget? replacement, bool unite = false, AsyncSnapshot? snapshot}) → Widget -
Available on Widget, provided by the SkeletonExtension extension
Converts the widget to a skeleton with advanced configuration options. -
asSkeletonSliver(
{bool enabled = true}) → Widget -
Available on Widget, provided by the SkeletonExtension extension
Converts the widget to a skeleton suitable for sliver layouts. -
center(
{Key? key}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Centers this widget horizontally and vertically. -
clip(
{Clip clipBehavior = Clip.hardEdge}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Clips this widget to a rectangle. -
clipOval(
{Clip clipBehavior = Clip.antiAlias}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Clips this widget to an oval shape. -
clipPath(
{Clip clipBehavior = Clip.antiAlias, required CustomClipper< Path> clipper}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Clips this widget to a custom path. -
clipRRect(
{BorderRadiusGeometry borderRadius = BorderRadius.zero, Clip clipBehavior = Clip.antiAlias}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Clips this widget to a rounded rectangle. -
constrained(
{double? minWidth, double? maxWidth, double? minHeight, double? maxHeight, double? width, double? height}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Wraps this widget in a ConstrainedBox with specified constraints. -
copyWith(
{ValueGetter< Key?> ? key, ValueGetter<Object> ? groupId, ValueGetter<TextEditingController?> ? controller, ValueGetter<String?> ? initialValue, ValueGetter<FocusNode?> ? focusNode, ValueGetter<UndoHistoryController?> ? undoController, ValueGetter<BoxDecoration?> ? decoration, ValueGetter<EdgeInsetsGeometry?> ? padding, ValueGetter<Widget?> ? placeholder, ValueGetter<CrossAxisAlignment> ? crossAxisAlignment, ValueGetter<String?> ? clearButtonSemanticLabel, ValueGetter<TextInputType?> ? keyboardType, ValueGetter<TextInputAction?> ? textInputAction, ValueGetter<TextCapitalization> ? textCapitalization, ValueGetter<TextStyle?> ? style, ValueGetter<StrutStyle?> ? strutStyle, ValueGetter<TextAlign> ? textAlign, ValueGetter<TextAlignVertical?> ? textAlignVertical, ValueGetter<TextDirection?> ? textDirection, ValueGetter<bool> ? readOnly, ValueGetter<bool?> ? showCursor, ValueGetter<bool> ? autofocus, ValueGetter<String> ? obscuringCharacter, ValueGetter<bool> ? obscureText, ValueGetter<bool> ? autocorrect, ValueGetter<SmartDashesType> ? smartDashesType, ValueGetter<SmartQuotesType> ? smartQuotesType, ValueGetter<bool> ? enableSuggestions, ValueGetter<int?> ? maxLines, ValueGetter<int?> ? minLines, ValueGetter<bool> ? expands, ValueGetter<int?> ? maxLength, ValueGetter<MaxLengthEnforcement?> ? maxLengthEnforcement, ValueGetter<ValueChanged< ? onChanged, ValueGetter<String> ?>VoidCallback?> ? onEditingComplete, ValueGetter<ValueChanged< ? onSubmitted, ValueGetter<String> ?>TapRegionCallback?> ? onTapOutside, ValueGetter<TapRegionCallback?> ? onTapUpOutside, ValueGetter<List< ? inputFormatters, ValueGetter<TextInputFormatter> ?>bool> ? enabled, ValueGetter<double> ? cursorWidth, ValueGetter<double?> ? cursorHeight, ValueGetter<Radius> ? cursorRadius, ValueGetter<bool> ? cursorOpacityAnimates, ValueGetter<Color?> ? cursorColor, ValueGetter<BoxHeightStyle> ? selectionHeightStyle, ValueGetter<BoxWidthStyle> ? selectionWidthStyle, ValueGetter<Brightness?> ? keyboardAppearance, ValueGetter<EdgeInsets> ? scrollPadding, ValueGetter<bool> ? enableInteractiveSelection, ValueGetter<TextSelectionControls?> ? selectionControls, ValueGetter<DragStartBehavior> ? dragStartBehavior, ValueGetter<ScrollController?> ? scrollController, ValueGetter<ScrollPhysics?> ? scrollPhysics, ValueGetter<GestureTapCallback?> ? onTap, ValueGetter<Iterable< ? autofillHints, ValueGetter<String> ?>Clip> ? clipBehavior, ValueGetter<String?> ? restorationId, ValueGetter<bool> ? stylusHandwritingEnabled, ValueGetter<bool> ? enableIMEPersonalizedLearning, ValueGetter<ContentInsertionConfiguration?> ? contentInsertionConfiguration, ValueGetter<EditableTextContextMenuBuilder?> ? contextMenuBuilder, ValueGetter<String?> ? hintText, ValueGetter<Border?> ? border, ValueGetter<BorderRadiusGeometry?> ? borderRadius, ValueGetter<bool?> ? filled, ValueGetter<WidgetStatesController?> ? statesController, ValueGetter<TextMagnifierConfiguration?> ? magnifierConfiguration, ValueGetter<SpellCheckConfiguration?> ? spellCheckConfiguration, ValueGetter<List< ? features, ValueGetter<InputFeature> >List< ? submitFormatters, ValueGetter<TextInputFormatter> ?>bool> ? skipInputFeatureFocusTraversal}) → TextField -
Creates a copy of this text field with the given properties replaced.
inherited
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< TextArea> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
excludeSkeleton(
{bool exclude = true}) → Widget -
Available on Widget, provided by the SkeletonExtension extension
Controls whether the widget should be preserved in skeleton mode. -
expanded(
{int flex = 1}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Makes this widget expanded within a Flex parent (Row/Column). -
ignoreSkeleton(
) → Widget -
Available on Widget, provided by the SkeletonExtension extension
Excludes the widget from skeleton effects in its parent skeleton context. -
intrinsic(
{double? stepWidth, double? stepHeight}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Sizes this widget to both intrinsic width and height. -
intrinsicHeight(
) → Widget -
Available on Widget, provided by the WidgetExtension extension
Sizes this widget to its intrinsic height. -
intrinsicWidth(
{double? stepWidth, double? stepHeight}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Sizes this widget to its intrinsic width. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
positioned(
{Key? key, double? left, double? top, double? right, double? bottom}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Positions this widget absolutely within a Stack. -
sized(
{double? width, double? height, double? size}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Wraps this widget in a SizedBox with specified dimensions. -
then(
InlineSpan span) → Widget -
Available on Widget, provided by the TextExtension extension
Appends an inline span to the current text widget. -
thenButton(
{required VoidCallback onPressed, required Widget child}) → Widget -
Available on Widget, provided by the TextExtension extension
Appends a button widget to the current text widget. -
thenInlineCode(
String text) → Widget -
Available on Widget, provided by the TextExtension extension
Appends inline code to the current text widget. -
thenText(
String text) → Widget -
Available on Widget, provided by the TextExtension extension
Appends a text span to the current text widget. -
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
-
transform(
{Key? key, required Matrix4 transform}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Applies a transformation matrix to this widget. -
withAlign(
AlignmentGeometry alignment) → Widget -
Available on Widget, provided by the WidgetExtension extension
Aligns this widget within its parent. -
withOpacity(
double opacity) → Widget -
Available on Widget, provided by the WidgetExtension extension
Applies opacity to this widget. -
withPadding(
{double? top, double? bottom, double? left, double? right, double? horizontal, double? vertical, double? all, EdgeInsetsGeometry? padding}) → Widget -
Available on Widget, provided by the WidgetExtension extension
Wraps this widget in a Padding widget.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited