pull/311/head
haroon amjad 19 hours ago
parent a623a418d5
commit 7c49606331

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

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

@ -290,9 +290,9 @@ class ContactUsViewModel extends ChangeNotifier {
requestInsertCOCItem.isUserLoggedIn = true;
requestInsertCOCItem.projectID = 0;
requestInsertCOCItem.patientName = "${appState.getAuthenticatedUser()!.firstName!} ${appState.getAuthenticatedUser()!.lastName!}";
requestInsertCOCItem.fileName = "";
requestInsertCOCItem.fileName = "Image 1";
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.deviceInfo = Platform.localHostname;
requestInsertCOCItem.resolution = "400x847";

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

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

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

Loading…
Cancel
Save