premium assets + livecard fix

This commit is contained in:
55nknown
2022-12-19 09:14:36 +01:00
parent 695f4e44f5
commit 84e65d2b7a
35 changed files with 183 additions and 62 deletions

View File

@@ -1,3 +1,5 @@
import 'dart:io';
import 'package:filcnaplo/models/settings.dart';
import 'package:filcnaplo/models/user.dart';
import 'package:filcnaplo_kreta_api/models/student.dart';
@@ -28,7 +30,7 @@ class UserProvider with ChangeNotifier {
void setUser(String userId) async {
_selectedUserId = userId;
await _settings.update(lastAccountId: userId);
updateWidget();
if (Platform.isAndroid) updateWidget();
notifyListeners();
}
@@ -57,7 +59,7 @@ class UserProvider with ChangeNotifier {
} else {
await _settings.update(lastAccountId: "");
}
updateWidget();
if (Platform.isAndroid) updateWidget();
notifyListeners();
}