Skip to content

Commit 1e45c56

Browse files
committed
Revert expands property removal.
1 parent f8890b5 commit 1e45c56

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
@@ -189,6 +189,9 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
189189
/// Text field decoration.
190190
late InputDecorationModel decoration;
191191

192+
/// Whether the field expands vertically.
193+
late bool expands;
194+
192195
/// Creates a [TextFieldProperties] instance with the given data.
193196
TextFieldProperties({
194197
this.autoCorrect = true,
@@ -213,6 +216,7 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
213216
this.obscuringCharacter = '•',
214217
TextProp? inputStyle,
215218
InputDecorationModel? decoration,
219+
this.expands = false,
216220
}) : inputStyle = inputStyle ??
217221
StartEndProp.general(fontSize: 14, fills: [PaintModel.blackPaint]),
218222
decoration = decoration ?? InputDecorationModel();
@@ -268,6 +272,7 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
268272
obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
269273
inputStyle: inputStyle ?? this.inputStyle,
270274
decoration: decoration ?? this.decoration,
275+
expands: expands ?? this.expands,
271276
);
272277
}
273278

@@ -302,5 +307,6 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
302307
obscuringCharacter,
303308
inputStyle,
304309
decoration,
310+
expands,
305311
];
306312
}

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)