In the lib/src/pinput_date_range_picker.dart at lines 174 and 177.
String? _validateDate(Jalali? date) {
if (date == null) {
return widget.errorFormatText ?? 'تاریخ انتخاب شده معتبر نمی باشد.';
} else if (date.isBefore(widget.firstDate) ||
date.isAfter(widget.lastDate)) {
return widget.errorInvalidText ?? 'تاریخ انتخاب شده معتبر نمی باشد.';
}
return null;
}
Suggested Solution:
Using shorter error text such as other error texts in this widget such as تاریخ معتبر نمی باشد. or direct translation of default flutter range picker error message in this situation (Out of range.). My suggested translation is .خارج از محدوده.
Issue:
Error text overflow when inputting not in range value in input entry mode of the Date Range Picker causes the error text not to be readable.
Screenshot:
Reproducing Example Code:
Location of The Overflowing Error Text:
In the
lib/src/pinput_date_range_picker.dart
at lines174
and177
.Suggested Solution:
Using shorter error text such as other error texts in this widget such as
تاریخ معتبر نمی باشد.
or direct translation of default flutter range picker error message in this situation (Out of range.
). My suggested translation is.خارج از محدوده
.