reformat auto save

This commit is contained in:
julian 2023-04-17 15:36:16 -06:00
parent e5c99e6d99
commit 154ad80137

View file

@ -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<void> 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();
}