Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 29cfb3d

Browse files
committed
Fix formatter
1 parent 803f2b6 commit 29cfb3d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/src/date_time_formatter.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ class DateTimeFormatter {
2424
return '';
2525
}
2626

27-
/// Check if the date format is for day(contain y、M、d、E) or not.
27+
/// Check if the date format is for day(contain y, M, d, E) or not.
2828
static bool isDayFormat(String format) {
2929
return format.contains(RegExp(r'[yMdE]'));
3030
}
3131

32-
/// Check if the date format is for time(contain H、m、s) or not.
32+
/// Check if the date format is for time(contain H, h, m, s, a) or not.
3333
static bool isTimeFormat(String format) {
34-
return format.contains(RegExp(r'[Hms]'));
34+
return format.contains(RegExp(r'[Hhmsa]'));
3535
}
3636

3737
/// Split date format to array.

lib/src/widget/time_picker_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class _TimePickerWidgetState extends State<TimePickerWidget> {
308308
}
309309
}
310310

311-
/// change the selection of hour picker
311+
/// change the selection of minute picker
312312
void _changeMinuteSelection(int index) {
313313
// TODO: this looks like it would break date ranges but not taking into account _minuteRange.first
314314
int value = index * _minuteDivider;

0 commit comments

Comments
 (0)