Skip to content

Commit 751b9b6

Browse files
committed
Implement text vertical alignment and expand properties for text field.
1 parent b38f5c9 commit 751b9b6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/src/api/nodes/text_field_node.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
175175
/// Maximum lines of text that appear at a time.
176176
late int? minLines;
177177

178+
late bool expands;
179+
178180
/// Defines the character that is used to obscure the text in the field.
179181
/// Defaults to '•'.
180182
late String obscuringCharacter;
@@ -194,6 +196,7 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
194196
this.obscureText = false,
195197
this.readOnly = false,
196198
this.showCursor = true,
199+
this.expands = false,
197200
this.keyboardType = TextInputTypeEnum.text,
198201
this.selectionHeightStyle = BoxHeightStyleEnum.tight,
199202
this.selectionWidthStyle = BoxWidthStyleEnum.tight,
@@ -238,6 +241,7 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
238241
String? obscuringCharacter,
239242
StartEndProp? inputStyle,
240243
InputDecorationModel? decoration,
244+
bool? expands,
241245
}) {
242246
return TextFieldProperties(
243247
autoCorrect: autoCorrect ?? this.autoCorrect,
@@ -263,6 +267,7 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
263267
obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
264268
inputStyle: inputStyle ?? this.inputStyle,
265269
decoration: decoration ?? this.decoration,
270+
expands: expands ?? this.expands,
266271
);
267272
}
268273

@@ -297,5 +302,6 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
297302
obscuringCharacter,
298303
inputStyle,
299304
decoration,
305+
expands,
300306
];
301307
}

lib/src/api/nodes/text_field_node.g.dart

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)