fix: idiomatic dow can be 1 character (#4543)

This commit is contained in:
Mathias Mogensen 2024-01-29 13:10:47 +01:00 committed by GitHub
parent c1433ce38a
commit ea93f0e141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ class _DatePickerState extends State<DatePicker> {
calendarBuilders: CalendarBuilders(
dowBuilder: (context, day) {
final locale = context.locale.toLanguageTag();
final label = DateFormat.E(locale).format(day).substring(0, 2);
final label = DateFormat.E(locale).format(day);
return Padding(
padding: const EdgeInsets.only(bottom: 8.0),
child: Center(