pull/311/head
haroon amjad 1 day ago
parent a623a418d5
commit 7c49606331

@ -1801,7 +1801,7 @@
"watchUsOnYoutube": "Watch us on youtube", "watchUsOnYoutube": "Watch us on youtube",
"connectOnLinkedin": "Connect on LinkedIn", "connectOnLinkedin": "Connect on LinkedIn",
"riskFactorPageTitle": "What do you feel?", "riskFactorPageTitle": "What do you feel?",
"bloodDonationService": "Blood Donation", "bloodDonationService": "Blood \nDonation",
"bookAppointmentService": "Book\nAppointment", "bookAppointmentService": "Book\nAppointment",
"pinchToZoom": "Pinch to zoom", "pinchToZoom": "Pinch to zoom",
"gotIt": "Got it", "gotIt": "Got it",

@ -58,8 +58,6 @@ class ApiConsts {
symptomsCheckerApi = symptomsCheckerApiLive; symptomsCheckerApi = symptomsCheckerApiLive;
symptomsCheckerUsername = 'mobile_user'; symptomsCheckerUsername = 'mobile_user';
symptomsCheckerPassword = '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'; symptomsCheckerPassword = '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92';
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId=";
break; break;
case AppEnvironmentTypeEnum.dev: case AppEnvironmentTypeEnum.dev:
baseUrl = "https://uat.hmgwebservices.com/"; baseUrl = "https://uat.hmgwebservices.com/";
@ -283,7 +281,7 @@ class ApiConsts {
static String googleCloudStorageENTranslationFileBaseURL = "https://storage.googleapis.com/hmg-patientapp-translations"; static String googleCloudStorageENTranslationFileBaseURL = "https://storage.googleapis.com/hmg-patientapp-translations";
// ************ static values for Api **************** // ************ static values for Api ****************
static final double appVersionID = 21.0; static final double appVersionID = 21.1;
// static final double appVersionID = 50.7; // static final double appVersionID = 50.7;
static final int appChannelId = 3; static final int appChannelId = 3;

@ -290,9 +290,9 @@ class ContactUsViewModel extends ChangeNotifier {
requestInsertCOCItem.isUserLoggedIn = true; requestInsertCOCItem.isUserLoggedIn = true;
requestInsertCOCItem.projectID = 0; requestInsertCOCItem.projectID = 0;
requestInsertCOCItem.patientName = "${appState.getAuthenticatedUser()!.firstName!} ${appState.getAuthenticatedUser()!.lastName!}"; requestInsertCOCItem.patientName = "${appState.getAuthenticatedUser()!.firstName!} ${appState.getAuthenticatedUser()!.lastName!}";
requestInsertCOCItem.fileName = ""; requestInsertCOCItem.fileName = "Image 1";
requestInsertCOCItem.appVersion = ApiConsts.appVersionID; requestInsertCOCItem.appVersion = ApiConsts.appVersionID;
requestInsertCOCItem.uILanguage = appState.isArabic() ? "ar" : "en"; //TODO Change it to be dynamic requestInsertCOCItem.uILanguage = appState.isArabic() ? "ar" : "en";
requestInsertCOCItem.browserInfo = Platform.localHostname; requestInsertCOCItem.browserInfo = Platform.localHostname;
requestInsertCOCItem.deviceInfo = Platform.localHostname; requestInsertCOCItem.deviceInfo = Platform.localHostname;
requestInsertCOCItem.resolution = "400x847"; requestInsertCOCItem.resolution = "400x847";

@ -356,7 +356,7 @@ class FeedbackPage extends StatelessWidget {
(String image, file) { (String image, file) {
print(image); print(image);
print(file); print(file);
Navigator.pop(context); // Navigator.pop(context);
contactUsViewModel.addFeedbackAttachment(image); contactUsViewModel.addFeedbackAttachment(image);
}, },
); );

@ -290,10 +290,10 @@ class _OtherDetailsStepState extends State<OtherDetailsStep> {
void _addMedicalReport(String image, File file, ReferralFormManager formManager) { void _addMedicalReport(String image, File file, ReferralFormManager formManager) {
// Max 1 file // Max 1 file
if (formManager.formData.medicalReportImages.isNotEmpty) { // if (formManager.formData.medicalReportImages.isNotEmpty) {
formManager.setFieldError('medicalReport', LocaleKeys.maxOneFileAllowed.tr(context: context)); // formManager.setFieldError('medicalReport', LocaleKeys.maxOneFileAllowed.tr(context: context));
return; // return;
} // }
// Max 1 MB // Max 1 MB
final fileSizeInBytes = file.lengthSync(); final fileSizeInBytes = file.lengthSync();
if (fileSizeInBytes > 1 * 1024 * 1024) { if (fileSizeInBytes > 1 * 1024 * 1024) {

@ -52,7 +52,7 @@ class AttachmentOptions extends StatelessWidget {
if (showFilesOption) if (showFilesOption)
checkInOptionCard( checkInOptionCard(
appState, appState,
AppAssets.files, AppAssets.file_icon,
LocaleKeys.openFiles.tr(context: context), LocaleKeys.openFiles.tr(context: context),
LocaleKeys.selectDocumentFiles.tr(context: context), LocaleKeys.selectDocumentFiles.tr(context: context),
).onPress(() async { ).onPress(() async {

Loading…
Cancel
Save