Minor changes
This commit is contained in:
parent
370107db72
commit
f7027c7ad5
1
.env
1
.env
@ -1,6 +1,5 @@
|
|||||||
CUSTOM_SCHEME=com.cosqnet.telemednet
|
CUSTOM_SCHEME=com.cosqnet.telemednet
|
||||||
PROFILE_COLLECTION_NAME=telemednetusers
|
PROFILE_COLLECTION_NAME=telemednetusers
|
||||||
PATIENT_PROFILE_COLLECTION_NAME=patientprofiles
|
|
||||||
DOCTOR_PROFILE_COLLECTION_NAME=doctorprofiles
|
DOCTOR_PROFILE_COLLECTION_NAME=doctorprofiles
|
||||||
CONSULTATION_CENTER_COLLECTION_NAME=businesscenters
|
CONSULTATION_CENTER_COLLECTION_NAME=businesscenters
|
||||||
FIREBASE_STORAGE_BUCKET=gs://cosq-telemednet-dev.firebasestorage.app
|
FIREBASE_STORAGE_BUCKET=gs://cosq-telemednet-dev.firebasestorage.app
|
||||||
|
|||||||
@ -47,26 +47,4 @@ class NavigationService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// static Future<void> 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);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,14 +5,6 @@ class RouteNames {
|
|||||||
static const String signUp = '/sign-up';
|
static const String signUp = '/sign-up';
|
||||||
static const String launch = '/launch';
|
static const String launch = '/launch';
|
||||||
static const String profileUpload = '/profile-upload';
|
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 familyMembersEditScreen = '/family-members-edit-screen';
|
||||||
static const String doctorAddressScreen = '/doctor-address-screen';
|
static const String doctorAddressScreen = '/doctor-address-screen';
|
||||||
static const String profileDescriptionScreen = '/doctor-profile-description';
|
static const String profileDescriptionScreen = '/doctor-profile-description';
|
||||||
|
|||||||
@ -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<String, dynamic> 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<String, dynamic> toJson() {
|
|
||||||
final Map<String, dynamic> data = <String, dynamic>{};
|
|
||||||
data['uid'] = uid;
|
|
||||||
data['name'] = name;
|
|
||||||
data['email'] = email;
|
|
||||||
data['photoURL'] = photoURL;
|
|
||||||
data['phoneNumber'] = phoneNumber;
|
|
||||||
data['alterPhoneNumber'] = alterPhoneNumber;
|
|
||||||
data['role'] = role;
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user