Environment
Package name: reactive_forms
Affected widget: ReactiveDatePicker
Package version: 16.1.1
Description
When using group-level validators like CompareValidator, validation errors are assigned to specific date controls (e.g., dateFrom). However, ReactiveDatePicker currently does not support validationMessages, which makes it difficult to display clear, user-friendly messages directly under the field.
To show custom messages today, we must wrap the widget inside a ReactiveFormField, which adds complexity and inconsistency across the form UI.
Expected solution:
Expose the validationMessages parameter in ReactiveDatePicker — similar to ReactiveTextField and other widgets, so that custom validation messages can be displayed without wrapping the date picker in a ReactiveFormField.
ReactiveDatePicker(
formControlName: 'dateFrom',
validationMessages: {
ValidationMessage.compare: (_) =>
'From date must be before or equal to To date',
},
Environment
Package name:
reactive_formsAffected widget:
ReactiveDatePickerPackage version: 16.1.1
Description
When using group-level validators like
CompareValidator, validation errors are assigned to specific date controls (e.g.,dateFrom). However,ReactiveDatePickercurrently does not supportvalidationMessages, which makes it difficult to display clear, user-friendly messages directly under the field.To show custom messages today, we must wrap the widget inside a ReactiveFormField, which adds complexity and inconsistency across the form UI.
Expected solution:
Expose the
validationMessagesparameter inReactiveDatePicker— similar toReactiveTextFieldand other widgets, so that custom validation messages can be displayed without wrapping the date picker in aReactiveFormField.