cleanup
This commit is contained in:
parent
fe5e93797a
commit
695f4e44f5
@ -71,7 +71,6 @@ Future<void> syncAll(BuildContext context) {
|
|||||||
|
|
||||||
Future<bool?> updateWidget() async {
|
Future<bool?> updateWidget() async {
|
||||||
try {
|
try {
|
||||||
print("FILC | Widget updated from sync");
|
|
||||||
return HomeWidget.updateWidget(name: 'widget_timetable.WidgetTimetable');
|
return HomeWidget.updateWidget(name: 'widget_timetable.WidgetTimetable');
|
||||||
} on PlatformException catch (exception) {
|
} on PlatformException catch (exception) {
|
||||||
debugPrint('Error Updating Widget. $exception');
|
debugPrint('Error Updating Widget. $exception');
|
||||||
|
@ -34,10 +34,11 @@ class UserProvider with ChangeNotifier {
|
|||||||
|
|
||||||
Future<bool?> updateWidget() async {
|
Future<bool?> updateWidget() async {
|
||||||
try {
|
try {
|
||||||
print("FILC | Widget updated from users");
|
|
||||||
return HomeWidget.updateWidget(name: 'widget_timetable.WidgetTimetable');
|
return HomeWidget.updateWidget(name: 'widget_timetable.WidgetTimetable');
|
||||||
} on PlatformException catch (exception) {
|
} on PlatformException catch (exception) {
|
||||||
print('Error Updating Widget After setUser. $exception');
|
if (kDebugMode) {
|
||||||
|
print('Error Updating Widget After setUser. $exception');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -54,12 +55,11 @@ class UserProvider with ChangeNotifier {
|
|||||||
if (_users.isNotEmpty) {
|
if (_users.isNotEmpty) {
|
||||||
setUser(_users.keys.first);
|
setUser(_users.keys.first);
|
||||||
} else {
|
} else {
|
||||||
print("FILC | Setting last account id to null");
|
|
||||||
await _settings.update(lastAccountId: "");
|
await _settings.update(lastAccountId: "");
|
||||||
}
|
}
|
||||||
updateWidget();
|
updateWidget();
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
User getUser(String userId) {
|
User getUser(String userId) {
|
||||||
return _users[userId]!;
|
return _users[userId]!;
|
||||||
|
@ -25,7 +25,7 @@ dependencies:
|
|||||||
|
|
||||||
flutter_localizations:
|
flutter_localizations:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
i18n_extension: ^5.0.1
|
i18n_extension: ^6.0.0
|
||||||
sqflite: ^2.2.0+2
|
sqflite: ^2.2.0+2
|
||||||
intl: ^0.17.0
|
intl: ^0.17.0
|
||||||
provider: ^5.0.0
|
provider: ^5.0.0
|
||||||
@ -44,7 +44,7 @@ dependencies:
|
|||||||
quick_actions: ^1.0.1
|
quick_actions: ^1.0.1
|
||||||
implicitly_animated_reorderable_list_2: ^0.4.2
|
implicitly_animated_reorderable_list_2: ^0.4.2
|
||||||
dynamic_color: ^1.2.2
|
dynamic_color: ^1.2.2
|
||||||
material_color_utilities: ^0.2.0
|
material_color_utilities: ^0.1.5
|
||||||
crypto: ^3.0.2
|
crypto: ^3.0.2
|
||||||
elegant_notification: ^1.6.1
|
elegant_notification: ^1.6.1
|
||||||
flutter_feather_icons: ^2.0.0+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