linter and lint fixes

This commit is contained in:
2024-05-25 21:36:05 +02:00
parent 7e347a70c2
commit 72be45feb4
15 changed files with 256 additions and 158 deletions

View File

@@ -18,7 +18,7 @@ class Globals {
String platform = '';
String hostname = '';
init() async {
Future<void> init() async {
PackageInfo packageInfo = await PackageInfo.fromPlatform();
this.appName = packageInfo.appName;

View File

@@ -38,7 +38,7 @@ class UserAccount extends ChangeNotifier {
notifyListeners();
}
load() async {
void load() async {
final prefs = await SharedPreferences.getInstance();
final uid = prefs.getString('auth.userid');
@@ -51,7 +51,7 @@ class UserAccount extends ChangeNotifier {
}
}
save() async {
Future<void> save() async {
final prefs = await SharedPreferences.getInstance();
if (_auth == null) {
await prefs.remove('auth.userid');
@@ -62,9 +62,9 @@ class UserAccount extends ChangeNotifier {
}
}
loadUser(bool force) async {
Future<User> loadUser(bool force) async {
if (!force && _user != null) {
return _user;
return _user!;
}
if (_auth == null) {