|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'dart:io';
|
|
|
|
|
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/service/AuthenticatedUserObject.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/service/medical/vital_sign_service.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/Authentication/authenticated_user.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/Authentication/check_activation_code_response.dart';
|
|
|
|
|
@ -39,8 +40,9 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
var familyFileProvider = FamilyFilesProvider();
|
|
|
|
|
AuthenticatedUser user;
|
|
|
|
|
AuthenticatedUser mainUser;
|
|
|
|
|
AuthenticatedUserObject authenticatedUserObject =
|
|
|
|
|
locator<AuthenticatedUserObject>();
|
|
|
|
|
AuthenticatedUserObject authenticatedUserObject = locator<AuthenticatedUserObject>();
|
|
|
|
|
VitalSignService _vitalSignService = locator<VitalSignService>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -408,6 +410,8 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
authenticatedUserObject.logout();
|
|
|
|
|
projectProvider.isLogin = false;
|
|
|
|
|
await authenticatedUserObject.getUser();
|
|
|
|
|
_vitalSignService.heightCm ="";
|
|
|
|
|
_vitalSignService.weightKg ="";
|
|
|
|
|
await sharedPref.clear();
|
|
|
|
|
this.user = null;
|
|
|
|
|
Navigator.of(context).pushNamed(HOME);
|
|
|
|
|
|