Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/ubuntu_widgets/lib/src/validated_form_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class ValidatedFormField extends StatefulWidget {
this.suffixIcon,
this.filled = false,
this.fillColor,
this.errorMaxLines,
}) : validator = validator ?? _NoValidator(),
spacing = spacing ?? (successWidget != null ? _kIconSpacing : null);

Expand Down Expand Up @@ -99,6 +100,9 @@ class ValidatedFormField extends StatefulWidget {
/// Override the background fill color of the form field if [filled] is true.
final Color? fillColor;

/// The maximum number of lines the errorText can occupy.
final int? errorMaxLines;

@override
State<ValidatedFormField> createState() => _ValidatedFormFieldState();
}
Expand Down Expand Up @@ -171,6 +175,7 @@ class _ValidatedFormFieldState extends State<ValidatedFormField> {
suffixIcon: widget.suffixIcon,
filled: widget.filled,
fillColor: widget.fillColor,
errorMaxLines: widget.errorMaxLines,
),
);

Expand Down
Loading