rework ui
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user