Fix `showDatePicker` in input mode throws an `ArgumentError` (#126525)
fixes https://github.com/flutter/flutter/issues/126397 The `parseCompactDate` method in `material_localizations.dart` with long text throws an argument error before the date picker could handle it to show a validation error while the date picker is on autovalidate. This PR adds `try/catch` in the `parseCompactDate` to return null on the argument error.
Showing
Please register or sign in to comment