From 695f4e44f5389fa4076108cc3f8c5278ecdcbf19 Mon Sep 17 00:00:00 2001 From: 55nknown Date: Thu, 8 Dec 2022 21:17:06 +0100 Subject: [PATCH] cleanup --- filcnaplo/lib/api/providers/sync.dart | 1 - filcnaplo/lib/api/providers/user_provider.dart | 8 ++++---- filcnaplo/pubspec.yaml | 4 ++-- filcnaplo_mobile_ui | 2 +- filcnaplo_premium | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/filcnaplo/lib/api/providers/sync.dart b/filcnaplo/lib/api/providers/sync.dart index eb608a0..0636e0e 100644 --- a/filcnaplo/lib/api/providers/sync.dart +++ b/filcnaplo/lib/api/providers/sync.dart @@ -71,7 +71,6 @@ Future syncAll(BuildContext context) { Future updateWidget() async { try { - print("FILC | Widget updated from sync"); return HomeWidget.updateWidget(name: 'widget_timetable.WidgetTimetable'); } on PlatformException catch (exception) { debugPrint('Error Updating Widget. $exception'); diff --git a/filcnaplo/lib/api/providers/user_provider.dart b/filcnaplo/lib/api/providers/user_provider.dart index 97be1f8..64cb7a8 100644 --- a/filcnaplo/lib/api/providers/user_provider.dart +++ b/filcnaplo/lib/api/providers/user_provider.dart @@ -34,10 +34,11 @@ class UserProvider with ChangeNotifier { Future updateWidget() async { try { - print("FILC | Widget updated from users"); return HomeWidget.updateWidget(name: 'widget_timetable.WidgetTimetable'); } on PlatformException catch (exception) { - print('Error Updating Widget After setUser. $exception'); + if (kDebugMode) { + print('Error Updating Widget After setUser. $exception'); + } } return false; } @@ -54,12 +55,11 @@ class UserProvider with ChangeNotifier { if (_users.isNotEmpty) { setUser(_users.keys.first); } else { - print("FILC | Setting last account id to null"); await _settings.update(lastAccountId: ""); } updateWidget(); notifyListeners(); -} + } User getUser(String userId) { return _users[userId]!; diff --git a/filcnaplo/pubspec.yaml b/filcnaplo/pubspec.yaml index 2470e59..7960600 100644 --- a/filcnaplo/pubspec.yaml +++ b/filcnaplo/pubspec.yaml @@ -25,7 +25,7 @@ dependencies: flutter_localizations: sdk: flutter - i18n_extension: ^5.0.1 + i18n_extension: ^6.0.0 sqflite: ^2.2.0+2 intl: ^0.17.0 provider: ^5.0.0 @@ -44,7 +44,7 @@ dependencies: quick_actions: ^1.0.1 implicitly_animated_reorderable_list_2: ^0.4.2 dynamic_color: ^1.2.2 - material_color_utilities: ^0.2.0 + material_color_utilities: ^0.1.5 crypto: ^3.0.2 elegant_notification: ^1.6.1 flutter_feather_icons: ^2.0.0+1 diff --git a/filcnaplo_mobile_ui b/filcnaplo_mobile_ui index 50c2352..2f7258d 160000 --- a/filcnaplo_mobile_ui +++ b/filcnaplo_mobile_ui @@ -1 +1 @@ -Subproject commit 50c2352f6ea1e23fa246b03ab5ce1aabdef17fef +Subproject commit 2f7258d2cafae434dda5bcb78d1516526074fe49 diff --git a/filcnaplo_premium b/filcnaplo_premium index c0b0d37..c0589b9 160000 --- a/filcnaplo_premium +++ b/filcnaplo_premium @@ -1 +1 @@ -Subproject commit c0b0d37b206a1de596e1d36fd8d146d4f366d9c6 +Subproject commit c0589b93ef1d85eff61db664d483bb029baaac0a