forked from firka/student-legacy
cleanup
This commit is contained in:
parent
fe5e93797a
commit
695f4e44f5
@ -71,7 +71,6 @@ Future<void> syncAll(BuildContext context) {
|
||||
|
||||
Future<bool?> 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');
|
||||
|
@ -34,11 +34,12 @@ class UserProvider with ChangeNotifier {
|
||||
|
||||
Future<bool?> updateWidget() async {
|
||||
try {
|
||||
print("FILC | Widget updated from users");
|
||||
return HomeWidget.updateWidget(name: 'widget_timetable.WidgetTimetable');
|
||||
} on PlatformException catch (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]!;
|
||||
|
@ -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
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 50c2352f6ea1e23fa246b03ab5ce1aabdef17fef
|
||||
Subproject commit 2f7258d2cafae434dda5bcb78d1516526074fe49
|
@ -1 +1 @@
|
||||
Subproject commit c0b0d37b206a1de596e1d36fd8d146d4f366d9c6
|
||||
Subproject commit c0589b93ef1d85eff61db664d483bb029baaac0a
|
Loading…
x
Reference in New Issue
Block a user