rework ui

This commit is contained in:
verboomp
2026-01-29 07:08:44 +01:00
parent ca514eea67
commit 38979c99e5
19 changed files with 457 additions and 293 deletions

View File

@@ -1,4 +1,6 @@
import 'package:flutter/material.dart';
import 'package:fotodocumentation/utils/di_container.dart';
import 'package:fotodocumentation/utils/jwt_token_storage.dart';
abstract class LoginCredentials extends ChangeNotifier {
String get fullname;
@@ -9,6 +11,8 @@ abstract class LoginCredentials extends ChangeNotifier {
}
class LoginCredentialsImpl extends LoginCredentials {
JwtTokenStorage get jwtTokenStorage => DiContainer.get();
bool loggedIn = false;
@override
@@ -24,6 +28,8 @@ class LoginCredentialsImpl extends LoginCredentials {
@override
void logout() {
loggedIn = false;
jwtTokenStorage.clearTokens;
notifyListeners();
}
}