mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
reformat auto save
This commit is contained in:
parent
e5c99e6d99
commit
154ad80137
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:devicelocale/devicelocale.dart';
|
import 'package:devicelocale/devicelocale.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -8,7 +9,9 @@ class LocaleService extends ChangeNotifier {
|
||||||
String get locale => _locale;
|
String get locale => _locale;
|
||||||
|
|
||||||
Future<void> loadLocale({bool notify = true}) async {
|
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) {
|
if (notify) {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue