From 154ad801370ac1b77e28974b8f30f3cd6212f728 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 17 Apr 2023 15:36:16 -0600 Subject: [PATCH] reformat auto save --- lib/services/locale_service.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); }