Перейти к основному содержимому

TextField

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
TextField✗✔️✗link
Атрибуты (устаревшие модели)
final class TextFieldAttributes extends AttendedModel<String>
implements DuitAttributes<TextFieldAttributes> {
final InputDecoration? decoration;
final TextStyle? style;
final TextInputType? keyboardType;
final TextAlign? textAlign;
final TextAlignVertical? textAlignVertical;
final TextDirection? textDirection;
final String? obscuringCharacter;
final bool? obscureText,
autocorrect,
enableSuggestions,
expands,
readOnly,
showCursor,
enabled,
autofocus;
final int? maxLines, minLines, maxLength;

TextFieldAttributes({
this.decoration,
this.style,
this.keyboardType,
this.textAlign,
this.textAlignVertical,
this.textDirection,
this.obscuringCharacter,
this.obscureText,
this.autofocus,
this.maxLines,
this.autocorrect,
this.enabled,
this.enableSuggestions,
this.expands,
this.maxLength,
this.minLines,
this.readOnly,
this.showCursor,
}) : super(value: "");

Пример использования​

TextField(
&duit_attributes.TextFieldAttributes[duit_edge_insets.EdgeInsetsAll, duit_color.ColorString]{
MaxLines: 3,
ObscureText: true,
ObscuringCharacter: "^",
},
"id",
&duit_core.RemoteAction{
Event: "/on_change",
DependsOn: []*duit_core.ActionDependency{
{
Id: "id",
Target: "value",
},
},
},
)