InputHistoryTextField class

Inheritance

Constructors

InputHistoryTextField({Key? key, required String historyKey, HistoryListItemLayoutBuilder? historyListItemLayoutBuilder, InputHistoryController? inputHistoryController, int limit = 5, bool hasFocusExpand = true, bool showHistoryIcon = true, bool showDeleteIcon = true, bool enableOpacityGradient = false, bool enableHistory = true, bool showHistoryList = true, bool enableFilterHistory = true, bool enableSave = true, IconData? historyIcon = Icons.history, IconData? deleteIcon = Icons.close, ListStyle? listStyle = ListStyle.List, @Deprecated('use `backgroundColor` instead ') Color? badgeColor, Color? backgroundColor, Color? textColor, Color? historyIconColor, Color? deleteIconColor, Decoration? listDecoration, Decoration? listRowDecoration, TextEditingController? textEditingController, Offset? listOffset, List<String>? lockItems, Color? lockTextColor, Color? lockBackgroundColor, IconTheme? historyIconTheme, IconTheme? deleteIconTheme, TextStyle? listTextStyle, FocusNode? focusNode, InputDecoration decoration = const InputDecoration(), TextInputType? keyboardType, TextInputAction? textInputAction, TextCapitalization textCapitalization = TextCapitalization.none, TextStyle? style, StrutStyle? strutStyle, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, TextDirection? textDirection, bool readOnly = false, ToolbarOptions? toolbarOptions, bool? showCursor, bool autofocus = false, bool obscureText = false, bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, bool enableSuggestions = true, int maxLines = 1, int? minLines, bool expands = false, int? maxLength, MaxLengthEnforcement? maxLengthEnforcement = MaxLengthEnforcement.none, ValueChanged<String>? onChanged, VoidCallback? onEditingComplete, ValueChanged<String>? onSubmitted, List<TextInputFormatter>? inputFormatters, bool? enabled, double cursorWidth = 2.0, Radius? cursorRadius, Color? cursorColor, BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool enableInteractiveSelection = true, GestureTapCallback? onTap, InputCounterWidgetBuilder? buildCounter, ScrollController? scrollController, ScrollPhysics? scrollPhysics})

Properties

autocorrect bool
final
autofocus bool
final
backgroundColor Color?
background color
final
badgeColor Color?
Badge background color
final
buildCounter InputCounterWidgetBuilder?
final
cursorColor Color?
final
cursorRadius Radius?
final
cursorWidth double
final
decoration InputDecoration
final
deleteIcon IconData?
IconData of history icon.
final
deleteIconColor Color?
delete icon color
final
deleteIconTheme IconTheme?
customize delete icon
final
dragStartBehavior DragStartBehavior
final
enabled bool?
final
enableFilterHistory bool
final
enableHistory bool
final
enableInteractiveSelection bool
final
enableOpacityGradient bool
make the input history list gradually transparent
final
enableSave bool
final
enableSuggestions bool
final
expands bool
final
focusNode FocusNode?
getter/setter pair
hasFocusExpand bool
show input history of edit text focused
final
hashCode int
The hash code for this object.
no setterinherited
historyIcon IconData?
IconData of delete icon.
final
historyIconColor Color?
history icon color
final
historyIconTheme IconTheme?
customize history icon
final
historyKey String
final
historyListItemLayoutBuilder HistoryListItemLayoutBuilder?
customize list all
final
inputFormatters List<TextInputFormatter>?
final
inputHistoryController InputHistoryController?
controller
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardAppearance Brightness?
final
keyboardType TextInputType
final
limit int
max limit of input history
final
listDecoration Decoration?
docoration of input history area
final
listOffset Offset?
offset of history list
final
listRowDecoration Decoration?
docoration of input history row
final
listStyle ListStyle?
style List or Badge
final
listTextStyle TextStyle?
customize list text style
final
lockBackgroundColor Color?
lock item background color
final
lockItems List<String>?
final
lockTextColor Color?
lock item font color
final
maxLength int?
final
maxLengthEnforcement MaxLengthEnforcement?
final
maxLines int
final
minLines int?
final
obscureText bool
final
onChanged ValueChanged<String>?
final
onEditingComplete VoidCallback?
final
onSubmitted ValueChanged<String>?
final
onTap GestureTapCallback?
final
readOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
final
scrollPadding EdgeInsets
final
scrollPhysics ScrollPhysics?
final
selectionHeightStyle BoxHeightStyle
final
selectionWidthStyle BoxWidthStyle
final
showCursor bool?
final
showDeleteIcon bool
icon of delete at right positioned
final
showHistoryIcon bool
icon of input history at left positioned
final
showHistoryList bool
show history list
final
smartDashesType SmartDashesType
final
smartQuotesType SmartQuotesType
final
strutStyle StrutStyle?
final
style TextStyle?
final
textAlign TextAlign
final
textAlignVertical TextAlignVertical?
final
textCapitalization TextCapitalization
final
textColor Color?
font color
final
textDirection TextDirection?
final
textEditingController TextEditingController?
getter/setter pair
textInputAction TextInputAction?
final
toolbarOptions ToolbarOptions
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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}) 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

Operators

operator ==(Object other) bool
The equality operator.
inherited