diff --git a/lib/services/locale_service.dart b/lib/services/locale_service.dart index e91f5a1c6..edb8bfc98 100644 --- a/lib/services/locale_service.dart +++ b/lib/services/locale_service.dart @@ -1,4 +1,5 @@ import 'dart:io'; + import 'package:devicelocale/devicelocale.dart'; import 'package:flutter/material.dart'; @@ -8,7 +9,9 @@ class LocaleService extends ChangeNotifier { String get locale => _locale; Future loadLocale({bool notify = true}) async { - _locale =Platform.isWindows ? "en_US" : await Devicelocale.currentLocale ?? "en_US"; + _locale = Platform.isWindows + ? "en_US" + : await Devicelocale.currentLocale ?? "en_US"; if (notify) { notifyListeners(); }