TextFormItem class
Form item to get a text string.
- Inheritance
-
- Object
- Renderable
- Component
- StatefulComponent<
String> - TextFormItem
Constructors
-
TextFormItem({String? key, required bool focused, String? label, Renderable? leading, Renderable? trailing, String startingValue = '', TextStyle? contentStyle, void valueChanged(WriggleContext context, String newValue)?, List<
StateReference> dependencies = const []}) -
Form item to get a text string.
const
Properties
- contentStyle → TextStyle?
-
Style override for the content text.
final
-
dependencies
→ List<
StateReference> -
When any dependency state changes, this state is invalidated.
finalinherited
- focused → bool
-
Focused.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String?
-
Key used to differentiate the states of different instances of this component.
finalinherited
- label → String?
-
Label to show with this field.
final
- leading → Renderable?
-
Item to place before the text line.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startingValue → String
-
Starting value for this component's state.
finalinherited
- stateReference → StateReference
-
Reference to this component's state.
no setterinherited
- trailing → Renderable?
-
Item to place after the text line.
final
- valueChanged → void Function(WriggleContext context, String newValue)?
-
Called when content should be changed.
final
Methods
-
build(
WriggleContext context) → Renderable -
Return a Renderable which is to be displayed.
override
-
discardState(
WriggleContext context) → void -
Return this state to its starting value.
inherited
-
getSize(
WriggleContext context, Axis axis, int crossSize) → int? -
Report this item's intrinsic size, or null if it has none.
inherited
-
getState(
WriggleContext context) → String -
Read the current state of this component.
inherited
-
getUsageInfo(
WriggleContext context) → UsageInfo -
Return usage info for this renderable, or redirect to its child.
override
-
keyPressed(
WriggleContext context, KeyInput key) → bool -
Handle key presses. Return
trueif the key was absorbed, orfalseif another listener further up the tree should handle it.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
WriggleContext context, int width, int height) → AxelMap -
Produce an AxelMap of the specified size to be shown on screen.
inherited
-
setState(
WriggleContext context, String update(String)) → void -
Update this component's state.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
read(
WriggleContext context, String? key, [String startingValue = '']) → String -
Read this component's internal state.
override