diff --git a/.env b/.env index c770b9d..0020154 100644 --- a/.env +++ b/.env @@ -1,6 +1,5 @@ CUSTOM_SCHEME=com.cosqnet.telemednet PROFILE_COLLECTION_NAME=telemednetusers -PATIENT_PROFILE_COLLECTION_NAME=patientprofiles DOCTOR_PROFILE_COLLECTION_NAME=doctorprofiles CONSULTATION_CENTER_COLLECTION_NAME=businesscenters FIREBASE_STORAGE_BUCKET=gs://cosq-telemednet-dev.firebasestorage.app diff --git a/lib/data/services/navigation_service.dart b/lib/data/services/navigation_service.dart index ae91a39..3a88f56 100644 --- a/lib/data/services/navigation_service.dart +++ b/lib/data/services/navigation_service.dart @@ -47,26 +47,4 @@ class NavigationService { } } } - - // static Future handlePatientNavigation(BuildContext context) async { - // try { - // final patientProfile = await PatientProfileService.getPatientProfile(); - - // if (context.mounted) { - // if (patientProfile != null) { - // Navigator.pushReplacementNamed( - // context, RouteNames.patientDashboardScreen); - // } else { - // Navigator.pushReplacementNamed( - // context, RouteNames.patientLandingScreen); - // } - // } - // } catch (e) { - // print('Error in handlePatientNavigation: $e'); - // if (context.mounted) { - // Navigator.pushReplacementNamed( - // context, RouteNames.patientLandingScreen); - // } - // } - // } } diff --git a/lib/route/route_names.dart b/lib/route/route_names.dart index 03ea4c0..724e4b4 100644 --- a/lib/route/route_names.dart +++ b/lib/route/route_names.dart @@ -5,14 +5,6 @@ class RouteNames { static const String signUp = '/sign-up'; static const String launch = '/launch'; static const String profileUpload = '/profile-upload'; - static const String patientLandingScreen = '/patient-landing-screen'; - static const String patientHomeScreen = '/patient-home-screen'; - static const String patientDashboardScreen = '/patient-dahboard-screen'; - static const String patientRegistrationScreen = - '/patient-registration-screen'; - static const String patientAdressScreen = '/patient-adress-screen'; - static const String patientFamilyMembersScreen = - '/patient-family-members-screen'; static const String familyMembersEditScreen = '/family-members-edit-screen'; static const String doctorAddressScreen = '/doctor-address-screen'; static const String profileDescriptionScreen = '/doctor-profile-description'; diff --git a/lib/telemed_user.dart b/lib/telemed_user.dart deleted file mode 100644 index ed68a07..0000000 --- a/lib/telemed_user.dart +++ /dev/null @@ -1,41 +0,0 @@ -enum UserRole { doctor, patient } - -class TelemedUser { - String uid; - late String? name; - late String? email; - late String? photoURL; - late String? phoneNumber; - late String? alterPhoneNumber; - late UserRole? role; - TelemedUser( - {required this.uid, - this.name, - this.email, - this.photoURL, - this.phoneNumber, - this.alterPhoneNumber, - this.role}); - - TelemedUser.fromJson(Map json, this.uid) { - uid = json['uid']; - name = json['name']; - email = json['email']; - photoURL = json['photoURL']; - phoneNumber = json['phoneNumber']; - alterPhoneNumber = json['alterPhoneNumber']; - role = json['role']; - } - - Map toJson() { - final Map data = {}; - data['uid'] = uid; - data['name'] = name; - data['email'] = email; - data['photoURL'] = photoURL; - data['phoneNumber'] = phoneNumber; - data['alterPhoneNumber'] = alterPhoneNumber; - data['role'] = role; - return data; - } -}