Skip to content

Commit

Permalink
[#494] [BF] Markdown alignments. Fix initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lyskouski committed Sep 26, 2024
1 parent 8068cbd commit a34b438
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/_classes/herald/app_locale.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2023 The terCAD team. All rights reserved.
// Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file.

import 'package:app_finance/_classes/herald/app_design.dart';
import 'package:app_finance/_classes/storage/app_preferences.dart';
import 'package:flutter/material.dart';
import 'package:flutter_currency_picker/flutter_currency_picker.dart';
Expand Down Expand Up @@ -28,6 +29,9 @@ class AppLocale extends ValueNotifier<Locale?> {
value = loc;
code = value.toString();
await AppPreferences.set(AppPreferences.prefLocale, newValue);
if (AppPreferences.get(AppPreferences.prefDesign) == null) {
await AppPreferences.set(AppPreferences.prefDesign, AppDesign.fromLocale(loc));
}
CurrencyDefaults.defaultLocale = loc;
if (callback != null) {
callback();
Expand Down

0 comments on commit a34b438

Please sign in to comment.