@@ -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}
0 commit comments