TextFieldElement class
(en) The textfield.
(ja) textfieldの実装。
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SpWMLElement
- TextElement
- TextFieldElement
Constructors
-
TextFieldElement(int serial, Map<
String, String> params, SpWMLParamsWrapper spwmlParams, int parentSerial, int lineStart, int lineEnd, SpWMLFontStyle style, SpWMLInfo? info, TextParamsWrapper textParams, TextFieldParamsWrapper tfParams) -
serial
: Array Index.params
: Element parameters.spwmlParams
: The spwml element parameters.parentSerial
: Parent Element serial.lineStart
: line info for the Error handling.lineEnd
: line info for the Error handling.style
: Font styles.info
: SpWML info.textParams
: Parent class parameters.- tfParams : This element parameters.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → SpWMLInfo?
-
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lineEnd → int
-
finalinherited
- lineStart → int
-
finalinherited
-
params
→ Map<
EnumSpWMLParams, dynamic> -
finalinherited
- parentSerial → int
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serial → int
-
finalinherited
- spwmlParams → SpWMLParamsWrapper
-
finalinherited
- style → SpWMLFontStyle
-
finalinherited
- textParams → TextParamsWrapper
-
finalinherited
- tfParams → TextFieldParamsWrapper
-
final
- type → EnumSpWMLElementType
-
finalinherited
Methods
-
build(
BuildContext context) → Widget -
Assemble and return the widget.
inherited
-
constraints(
Widget child) → Widget -
Wrap if necessary.
inherited
-
container(
Widget child) → Widget -
Wrap if necessary.
inherited
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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
-
expand(
Widget child) → Widget -
Wrap if necessary.
inherited
-
getBorderSide(
) → BorderSide? -
Get button or card borderSide.
This method is used internally by the package and should not be called externally.
inherited
-
getClassName(
) → String -
Get this class name.
override
-
getContentText(
) → String -
(en) Gets the content text set on this element.
inherited
-
getDefDecorationStyle(
) → TextDecorationStyle? -
get default decoration style.
inherited
-
getDefFontFamily(
) → String? -
get default font family.
inherited
-
getDefFontLetterSpacing(
) → double? -
get default text letter spacing.
inherited
-
getDefFontSize(
) → double -
get default font size.
inherited
-
getDefFontStyle(
) → FontStyle? -
get default font style.
inherited
-
getDefFontWeight(
) → FontWeight? -
get default font weight.
inherited
-
getDefTextBGColor(
) → Color? -
get default text background color
inherited
-
getDefTextColor(
) → Color? -
get default text color
inherited
-
getDefTextDeco(
) → TextDecoration? -
get default text decoration.
inherited
-
getDefTextDecoColor(
) → Color? -
get default decoration color.
inherited
-
getDefTextDecoThickness(
) → double? -
get default decoration thickness.
inherited
-
getDefWordSpacing(
) → double? -
get default word spacing.
inherited
-
getFontSize(
BuildContext context) → double? -
get font size.
inherited
-
getInSpan(
BuildContext context) → Widget -
(en) A dedicated function to be called in a span block.
Using SelectableText in a span will break the range, but you can avoid it.
inherited
-
getLineHeight(
) → double? -
get text height from param.
inherited
-
getNonSelectableTextWidget(
BuildContext context) → Widget -
Get text widget
inherited
-
getShape(
) → OutlinedBorder? -
Get element shape. It works for btn, card, radioBtn and checkbox.
This method is used internally by the package and should not be called externally.
inherited
-
getSID(
) → String? -
(en) Gets the SID set for this element. Returns null if not set.
inherited
-
getStrutStyle(
BuildContext context) → StrutStyle? -
get text strut style from parameters.
inherited
-
getStyle(
BuildContext context) → TextStyle -
get text style from parameters.
inherited
-
getText(
) → String? - Gets the text set to this widget. If the controller or manager is not set, null is returned.
-
getTextAlign(
) → TextAlign -
Get Text alignment.
inherited
-
getTextWidget(
BuildContext context) → Widget -
Get Text or SelectableText.
inherited
-
getWidget(
BuildContext context) → Widget -
Assemble and return the widget.
override
-
initParams(
) → TextFieldElement -
initialize parameters
override
-
material(
Widget child) → Widget -
Wrap if necessary.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBGColor(
Color c) → void -
Set background color.
Calling this will also automatically update the box decoration internally.
inherited
-
setClearCallback(
dynamic btnCallback()?) → void - Set searchAndClear mode clear icon button callback.
-
setContentText(
String text) → void -
(en) Sets the content text for this element.
inherited
-
setController(
TextEditingController? controller) → void - Set TextEditingController.
-
setEnabled(
bool enabled) → void - Set enabled flag.
-
setFocusNode(
FocusNode? focusNode) → void - Set focusNode.
-
setIsGone(
bool isGone) → void -
Set visibility flag.
inherited
-
setManager(
TextFieldManager manager, String name, {String? initialText, bool isAlwaysInitialize = false}) → void - Use TextFieldManager to apply setController and setFocusNode at the same time.
-
setOnChanged(
void onChanged(String)?) → void - Set onChanged callback.
-
setOnSubmitted(
void onSubmitted(String)?) → void - Set onSubmitted callback.
-
setSearchCallback(
dynamic btnCallback(String inputText)?) → void - Set search mode search icon button callback.
-
setText(
String text) → void - Set the new text to this widget. Disabled if controller or manager is not set.
-
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
-
transform(
Widget child) → Widget -
Wrap if necessary.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited