Taha Tesser
d7b092e42d
Fix TimePicker
hour and minute inputs are resized on error (#154008)
Fixes [Defining inputDecorationTheme in TimePickerThemeData Causes Misalignment of Hour and Minute Input Boxes](https://github.com/flutter/flutter/issues/153549)
### Code sample
<details>
<summary>expand to view the code sample</summary>
```dart
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
timePickerTheme: const TimePickerThemeData(
inputDecorationTheme: InputDecorationTheme(),
),
),
home: Scaffold(
body: Center(
child: Builder(builder: (BuildContext context) {
return ElevatedButton(
onPressed: () async {
await showTimePicker(
context: context,
initialEntryMode: TimePickerEntryMode.input,
initialTime: TimeOfDay.now(),
);
},
child: const Text('Show Time Picker'),
);
}),
),
),
);
}
}
```
</details>
### Before
<img width="578" alt="Screenshot 2024-08-23 at 16 49 25" src="https://github.com/user-attachments/assets/f5da2495-551e-4110-85ea-120323cd38d2">
### After
<img width="578" alt="Screenshot 2024-08-23 at 16 51 03" src="https://github.com/user-attachments/assets/80224a10-e9d2-46d1-b2eb-f16358699744">
2024-08-23 17:15:36 +00:00
..
2024-02-28 13:55:50 -08:00
2024-02-28 13:55:50 -08:00
2024-02-28 13:55:50 -08:00
2024-02-28 13:55:50 -08:00
2024-08-02 23:31:07 +00:00
2024-07-29 16:48:06 +00:00
2024-02-01 00:05:22 +00:00
2024-02-28 13:55:50 -08:00
2024-03-01 12:44:29 +00:00
2024-05-10 22:08:59 +00:00
2024-05-15 18:37:07 +00:00
2024-03-28 22:22:20 +00:00
2024-02-28 13:55:50 -08:00
2024-02-28 13:55:50 -08:00
2024-01-30 16:28:31 -08:00
2024-06-25 21:42:59 +00:00
2024-08-02 23:31:07 +00:00
2023-11-01 23:29:49 +00:00
2024-02-28 13:55:50 -08:00
2024-06-20 19:18:21 +00:00
2024-03-28 22:22:20 +00:00
2024-02-28 13:55:50 -08:00
2024-04-24 11:56:32 +00:00
2024-07-16 20:25:09 +00:00
2024-03-28 17:56:09 +00:00
2024-06-05 20:51:06 +00:00
2024-08-23 17:15:36 +00:00
2024-01-23 09:35:22 +00:00
2024-03-04 20:20:19 +00:00