This commit is contained in:
Thomas Klein Langenhorst 2022-09-01 16:23:39 +02:00
parent 92b7afce0e
commit 7a3c66d28c

View file

@ -267,7 +267,7 @@ class _DateTimePickerState extends State<DateTimePicker> {
bool useTimeFormatBasedOnLocale() {
// Get LocaleName of current platform and split language- and countryCode in 2 List values.
var deviceLocale = Platform.localeName.split('_');
List<String> deviceLocale = Platform.localeName.split('_');
// Make LocaleName of current platform in a Locale Object
Locale defaultLocale = Locale.fromSubtags(