showTimePickerDialog function
show time picker
Implementation
Future<TimeOfDay?> showTimePickerDialog(context) async {
return showTimePicker(
context: context,
initialTime: TimeOfDay(hour: 00, minute: 00),
builder: (context, child) => MediaQuery(
data: MediaQuery.of(context).copyWith(alwaysUse24HourFormat: true),
child: child!));
}