Skip to content

Commit 0e9337f

Browse files
committed
fix: sort pubspec dependencies alphabetically
Signed-off-by: TEE0207 <taofeeklwl@gmail.com>
1 parent 5e8029a commit 0e9337f

3 files changed

Lines changed: 6 additions & 16 deletions

File tree

mobile-app/lib/service/symbol_bar_service.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@
99
library;
1010

1111
import 'dart:convert';
12+
import 'package:flutter/foundation.dart';
1213
import 'package:freecodecamp/models/symbol_set_model.dart';
13-
import 'package:logger/logger.dart';
1414
import 'package:shared_preferences/shared_preferences.dart';
1515

1616
class SymbolBarService {
1717
static const String _activeSetKey = 'symbol_bar_active_set';
1818
static const String _customSetKey = 'symbol_bar_custom_sets';
1919
static const String _customEnabledKey = 'symbol_bar_custom_enabled';
2020

21-
final Logger _log = Logger();
22-
2321
late SharedPreferences _prefs;
2422
late SymbolBarState _state;
2523

@@ -94,7 +92,7 @@ class SymbolBarService {
9492
}
9593
} catch (e) {
9694
// If deserialization fails, reset to default
97-
_log.e('Error loading symbol bar state: $e. Resetting to default.');
95+
debugPrint('Error loading symbol bar state: $e');
9896
_state = SymbolBarState.defaultState();
9997
await _saveState();
10098
}
@@ -112,7 +110,7 @@ class SymbolBarService {
112110
await _prefs.setBool(_customEnabledKey, _state.customSymbolsEnabled);
113111
_notifyListeners();
114112
} catch (e) {
115-
_log.e('Error saving symbol bar state: $e');
113+
debugPrint('Error loading symbol bar state: $e');
116114
}
117115
}
118116

mobile-app/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ dependencies:
1818
firebase_remote_config: 5.4.3
1919
flutter:
2020
sdk: flutter
21-
logger: ^1.4.0
2221
flutter_custom_tabs: 2.5.0
2322
flutter_dotenv: 5.2.1
2423
flutter_heatmap_calendar: 1.0.5
@@ -39,6 +38,7 @@ dependencies:
3938
infinite_scroll_pagination: 5.0.0
4039
jiffy: 6.3.2
4140
just_audio: 0.10.4
41+
logger: ^1.4.0
4242
path: 1.9.1
4343
path_provider: 2.1.5
4444
phone_ide: 2.0.1
@@ -82,7 +82,6 @@ flutter:
8282
uses-material-design: true
8383
generate: true
8484
assets:
85-
- .env
8685
- assets/images/
8786
- assets/sql/
8887
- assets/test_data/news_post.json
@@ -91,3 +90,4 @@ flutter:
9190
- assets/learn/
9291
- assets/test_runner/dist/
9392
- assets/test_runner/babel/
93+
- .env

mobile-app/untranslated.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
{
2-
"es": [
3-
"coderadio_unable_to_load"
4-
],
5-
6-
"pt": [
7-
"coderadio_unable_to_load"
8-
]
9-
}
1+
{}

0 commit comments

Comments
 (0)