BasfTextField class

A BASF-styled text field input

Inheritance

Constructors

BasfTextField({required TextEditingController controller, Key? key, String? labelText, VoidCallback? onScanPressed, bool multiScanEnabled = false, FocusNode? focusNode, InputDecoration? decoration, TextInputType? keyboardType, TextCapitalization? textCapitalization, TextInputAction? textInputAction, TextStyle? style, StrutStyle? strutStyle, TextDirection? textDirection, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, bool autofocus = false, bool readOnly = false, EditableTextContextMenuBuilder? contextMenuBuilder, MouseCursor? mouseCursor, TapRegionCallback? onTapOutside, bool? showCursor, String obscuringCharacter = '•', bool obscureText = false, bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, bool enableSuggestions = true, MaxLengthEnforcement? maxLengthEnforcement, int? maxLines = 1, int? minLines, bool expands = false, int? maxLength, ValueChanged<String>? onChanged, GestureTapCallback? onTap, VoidCallback? onEditingComplete, FormFieldValidator<String>? validator, List<TextInputFormatter>? inputFormatters, bool? enabled, double cursorWidth = 2.0, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(30), bool enableInteractiveSelection = true, TextSelectionControls? selectionControls, InputCounterWidgetBuilder? buildCounter, ScrollPhysics? scrollPhysics, Iterable<String>? autofillHints, AutovalidateMode? autovalidateMode = AutovalidateMode.always, ScrollController? scrollController, String? restorationId, bool enableIMEPersonalizedLearning = true, bool greyWhenDisabled = true, bool canRequestFocus = true, Clip clipBehavior = Clip.hardEdge, ContentInsertionConfiguration? contentInsertionConfiguration, bool? cursorOpacityAnimates, DragStartBehavior dragStartBehavior = DragStartBehavior.start, TextMagnifierConfiguration? magnifierConfiguration, AppPrivateCommandCallback? onAppPrivateCommand, ValueChanged<String>? onSubmitted, bool stylusHandwritingEnabled = true, BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight, SpellCheckConfiguration? spellCheckConfiguration, UndoHistoryController? undoController, Color? cursorErrorColor, bool onTapAlwaysCalled = false, WidgetStatesController? statesController, bool? ignorePointers, TapRegionUpCallback? onTapUpOutside})
A BASF-styled text field input
const
BasfTextField.fromTextFieldData({required TextFieldData textFieldData, String? labelText, TextEditingController? controller, String? validator(String?)?, AutovalidateMode? autovalidateMode, TextInputType? keyboardType, List<TextInputFormatter>? inputFormatters, TextCapitalization? textCapitalization, VoidCallback? onScanPressed, bool multiScanEnabled = false, FocusNode? focusNode, TextInputAction? textInputAction, InputDecoration? decoration, TextStyle? style, StrutStyle? strutStyle, TextDirection? textDirection, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, bool autofocus = false, bool readOnly = false, EditableTextContextMenuBuilder? contextMenuBuilder, MouseCursor? mouseCursor, TapRegionCallback? onTapOutside, bool? showCursor, String obscuringCharacter = '•', bool obscureText = false, bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, bool enableSuggestions = true, MaxLengthEnforcement? maxLengthEnforcement, int? maxLines = 1, int? minLines, bool expands = false, int? maxLength, ValueChanged<String>? onChanged, GestureTapCallback? onTap, VoidCallback? onEditingComplete, bool? enabled, double cursorWidth = 2.0, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(30), bool enableInteractiveSelection = true, TextSelectionControls? selectionControls, InputCounterWidgetBuilder? buildCounter, ScrollPhysics? scrollPhysics, Iterable<String>? autofillHints, ScrollController? scrollController, String? restorationId, bool enableIMEPersonalizedLearning = true, bool greyWhenDisabled = true, bool canRequestFocus = true, Clip clipBehavior = Clip.hardEdge, ContentInsertionConfiguration? contentInsertionConfiguration, bool? cursorOpacityAnimates, DragStartBehavior dragStartBehavior = DragStartBehavior.start, TextMagnifierConfiguration? magnifierConfiguration, AppPrivateCommandCallback? onAppPrivateCommand, ValueChanged<String>? onSubmitted, bool stylusHandwritingEnabled = true, BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight, SpellCheckConfiguration? spellCheckConfiguration, UndoHistoryController? undoController, Color? cursorErrorColor, bool? ignorePointers, bool onTapAlwaysCalled = false, TapRegionUpCallback? onTapUpOutside, WidgetStatesController? statesController, Key? key})
Constructor to create a BasfTextField from a TextFieldData

Properties

autocorrect → bool
Whether or not to correct the text automatically
final
autofillHints → Iterable<String>?
Auto fill hints
final
autofocus → bool
Autofocus
final
autovalidateMode → AutovalidateMode?
Auto validate
final
buildCounter → InputCounterWidgetBuilder?
Counter widget
final
canRequestFocus → bool
Request focus
final
clipBehavior → Clip
Clip behavior
final
contentInsertionConfiguration → ContentInsertionConfiguration?
Content configuration
final
contextMenuBuilder → EditableTextContextMenuBuilder?
Context menu builder
final
controller → TextEditingController
Form key Text field controller
final
cursorColor → Color?
Cursor color
final
cursorErrorColor → Color?
cursor error color
final
cursorHeight → double?
Cursor height
final
cursorOpacityAnimates → bool?
Cursor animation
final
cursorRadius → Radius?
Cursor radius
final
cursorWidth → double
Cursor width
final
decoration → InputDecoration?
Input decoration
final
dragStartBehavior → DragStartBehavior
Drag behavior
final
enabled → bool?
Whether or not it is enabled
final
enableIMEPersonalizedLearning → bool
Enable IMEPersonalized learning
final
enableInteractiveSelection → bool
Enable interactive selection
final
enableSuggestions → bool
Whether or not to show suggestions
final
expands → bool
Whether or not it expands
final
focusNode → FocusNode?
Initial value Current focus node
final
greyWhenDisabled → bool
If the color should be changed to grey when disabled
final
hashCode → int
The hash code for this object.
no setterinherited
ignorePointers → bool?
ignore pointers
final
inputFormatters → List<TextInputFormatter>?
Input formatters
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardAppearance → Brightness?
Keyboard appearance
final
keyboardType → TextInputType?
Keyboard type
final
labelText → String?
Label of the BasfTextField Prefer this instead of the decoration property for the label
final
magnifierConfiguration → TextMagnifierConfiguration?
Magnifier config
final
maxLength → int?
Max character length
final
maxLengthEnforcement → MaxLengthEnforcement?
Max length setter
final
maxLines → int?
Max lines for the input
final
minLines → int?
Min lines for the input
final
mouseCursor → MouseCursor?
Mouse cursor
final
multiScanEnabled → bool
If true, the scan icon is shown even if the BasfTextField is not empty if onScanPressed is provided
final
obscureText → bool
Whether or not to hide the text
final
obscuringCharacter → String
Obscuring character
final
onAppPrivateCommand → AppPrivateCommandCallback?
Primitive command
final
onChanged → ValueChanged<String>?
Action to be performed when the value changes
final
onEditingComplete → VoidCallback?
Void callback when editing is completed
final
onScanPressed → VoidCallback?
If provided, a scan icon is shown if the BasfTextField is empty
final
onSubmitted → ValueChanged<String>?
OnSubmitted callback
final
onTap → VoidCallback?
On tap callback performed on tap
final
onTapAlwaysCalled → bool
on tap always called
final
onTapOutside → TapRegionCallback?
OnTapOutside
final
onTapUpOutside → TapRegionUpCallback?
on tap outside callback
final
readOnly → bool
Read-only
final
restorationId → String?
Restoration ID
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollController → ScrollController?
Scroll controller
final
scrollPadding → EdgeInsets
Scroll padding
final
scrollPhysics → ScrollPhysics?
Physics
final
selectionControls → TextSelectionControls?
Controls
final
selectionHeightStyle → BoxHeightStyle
Controls how height the selection highlight boxes are computed to be.
final
selectionWidthStyle → BoxWidthStyle
Controls how wide the selection highlight boxes are computed to be.
final
showCursor → bool?
Whether or not to show the cursor
final
smartDashesType → SmartDashesType?
Smart dashes type
final
smartQuotesType → SmartQuotesType?
Smart quotes type
final
spellCheckConfiguration → SpellCheckConfiguration?
Spell check
final
statesController → WidgetStatesController?
states controller
final
strutStyle → StrutStyle?
Text strut style
final
style → TextStyle?
Text style
final
stylusHandwritingEnabled → bool
Stylus handwriting enabled
final
textAlign → TextAlign
Text alignment
final
textAlignVertical → TextAlignVertical?
Text alignment vertical
final
textCapitalization → TextCapitalization?
Text capitalization
final
textDirection → TextDirection?
Text direction
final
textInputAction → TextInputAction?
Text input action
final
undoController → UndoHistoryController?
Undo controller
final
validator → FormFieldValidator<String>?
Field submitted value Field submitted on saved Field validator
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<BasfTextField>
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, 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

Operators

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