Repository: flutter
Issue: [TimePicker]  `Enter a valid time` error in some locales
Labels: framework,f: material design,f: date/time picker,a: internationalization,has reproducible steps,found in release: 2.2,found in release: 2.3,team-design,triaged-design

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

```dart
TextButton(
      onPressed: () {
        showTimePicker(
          initialTime: TimeOfDay.now(),
          context: context,
          builder: (BuildContext context, Widget? child) {
            return MediaQuery(
              data:
                  MediaQuery.of(context).copyWith(alwaysUse24HourFormat: true),
              child: child!,
            );
          },
        );
      },
      child: const Text('Show picker'),
    );
```
**Expected results:** <!-- what did you want to see? -->

I am using `showTimePicker` to open time picker , it works well, but I have a problem that I am unable to reproduce it in a minimal project
In my project, When time picker opened it use 24 hour format, both `dial` and `input` mode works well, just when you pick a time in `dial` mode and switch to `input` mode and press ok button, we have `Enter a valid time` error

I just figured out by changing `locale` and `supportedLocales` of `MaterialApp` to `Locale("en", "US")` everything is OK

I am using the following config in `MaterialApp`
```dart
  localizationsDelegates: [
    GlobalMaterialLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
    GlobalCupertinoLocalizations.delegate,
    DefaultCupertinoLocalizations.delegate
  ],
  supportedLocales: [
    Locale("fa", "IR"),
  ],
  locale: Locale("fa", "IR")),
```

and have `زمان معتبری وارد کنید` error, it's my guess that may be we have problem with persian/arabic numbers

**Actual results:** <!-- what did you see? -->

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[√] Flutter (Channel stable, 2.2.2, on Microsoft Windows [Version 10.0.18363.1621], locale en-US)
    • Flutter version 2.2.2 at C:\flutter
    • Framework revision d79295af24 (3 weeks ago), 2021-06-11 08:56:01 -0700
    • Engine revision 91c9fc8fe0
    • Dart version 2.13.3

```

</details>