haroon_dev #346

Merged
Haroon6138 merged 2 commits from haroon_dev into master 4 days ago

@ -123,7 +123,7 @@
"forgotFileNoTitle": "نسيت الملف الطبي", "forgotFileNoTitle": "نسيت الملف الطبي",
"enterNationalId": "يرجى إدخال رقم الهاتف المحمول ورقم الهوية", "enterNationalId": "يرجى إدخال رقم الهاتف المحمول ورقم الهوية",
"profileInfo": "يرجى إدخال معلومات الملف الشخصي", "profileInfo": "يرجى إدخال معلومات الملف الشخصي",
"submit": "بحث", "submit": "تأكيد",
"forgotDesc": "أدخل رقم الهاتف المحمول لاستلام رقم الملف الطبي عبر الرسائل القصيرة", "forgotDesc": "أدخل رقم الهاتف المحمول لاستلام رقم الملف الطبي عبر الرسائل القصيرة",
"dob": "تاريخ الميلاد", "dob": "تاريخ الميلاد",
"hijriDate": "التاريخ الهجري", "hijriDate": "التاريخ الهجري",
@ -1390,7 +1390,6 @@
"medicalFiles": "الملفات الطبية", "medicalFiles": "الملفات الطبية",
"addANewFamilyMember": "اضافة", "addANewFamilyMember": "اضافة",
"viewInvoiceDetails": "عرض تفاصيل الفاتورة", "viewInvoiceDetails": "عرض تفاصيل الفاتورة",
"outPatient": "مريض خارجي",
"invoiceDetails": "تفاصيل الفاتورة", "invoiceDetails": "تفاصيل الفاتورة",
"sendingEmailPleaseWait": "جاري إرسال ال<D8A7><D984>ريد الإلكتروني، يرجى الانتظار...", "sendingEmailPleaseWait": "جاري إرسال ال<D8A7><D984>ريد الإلكتروني، يرجى الانتظار...",
"emailSentSuccessfullyMessage": "تم إرسال البريد الإلكتروني بنجاح.", "emailSentSuccessfullyMessage": "تم إرسال البريد الإلكتروني بنجاح.",
@ -1946,7 +1945,7 @@
"transactions": "المعاملات", "transactions": "المعاملات",
"pharmacy": "الصيدلية", "pharmacy": "الصيدلية",
"visitsOrders": "الزيارات/الطلبات", "visitsOrders": "الزيارات/الطلبات",
"earned": "حصل", "earned": "مكتسب",
"getParkingQR": "الحصول على رمز الاستجابة السريعة لوقوف السيارات", "getParkingQR": "الحصول على رمز الاستجابة السريعة لوقوف السيارات",
"cannotOpenThisFile": "لا يمكن فتح هذا الملف", "cannotOpenThisFile": "لا يمكن فتح هذا الملف",
"refundDetails": "تفاصيل الاسترداد", "refundDetails": "تفاصيل الاسترداد",

@ -3,6 +3,7 @@ import 'dart:developer';
import 'dart:io'; import 'dart:io';
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show rootBundle; import 'package:flutter/services.dart' show rootBundle;
import 'package:get_it/get_it.dart'; import 'package:get_it/get_it.dart';
@ -979,6 +980,7 @@ class AuthenticationViewModel extends ChangeNotifier {
// TODO: GET APP SMS SIGNATURE HERE // TODO: GET APP SMS SIGNATURE HERE
request.sMSSignature = await getSignature(); request.sMSSignature = await getSignature();
if(!kDebugMode) {
// Get Turnstile token if configured // Get Turnstile token if configured
final turnstileToken = await _turnstileService.getTurnstileToken(); final turnstileToken = await _turnstileService.getTurnstileToken();
if (turnstileToken != null) { if (turnstileToken != null) {
@ -986,6 +988,7 @@ class AuthenticationViewModel extends ChangeNotifier {
} else { } else {
request.turnstileToken = ""; request.turnstileToken = "";
} }
}
if (isNeedLoading) { if (isNeedLoading) {
LoaderBottomSheet.showLoader(); LoaderBottomSheet.showLoader();

@ -127,9 +127,9 @@ class AppointmentDoctorCard extends StatelessWidget {
runSpacing: 6.h, runSpacing: 6.h,
children: [ children: [
AppCustomChipWidget( AppCustomChipWidget(
labelText: (patientAppointmentHistoryResponseModel.clinicName!.length > 20 labelText: ((patientAppointmentHistoryResponseModel.clinicName ?? "").length > 20
? '${patientAppointmentHistoryResponseModel.clinicName!.substring(0, 20)}...' ? '${(patientAppointmentHistoryResponseModel.clinicName ?? "").substring(0, 20)}...'
: patientAppointmentHistoryResponseModel.clinicName!), : (patientAppointmentHistoryResponseModel.clinicName ?? "")),
labelPadding: EdgeInsetsDirectional.only(start: 4.w, end: 4.w), labelPadding: EdgeInsetsDirectional.only(start: 4.w, end: 4.w),
), ),
AppCustomChipWidget( AppCustomChipWidget(

@ -89,7 +89,7 @@ class _HabibWalletState extends State<HabibWalletPage> {
"${appState.getAuthenticatedUser()!.firstName!} ${appState.getAuthenticatedUser()!.lastName!}" "${appState.getAuthenticatedUser()!.firstName!} ${appState.getAuthenticatedUser()!.lastName!}"
.toText19(isBold: true, color: Colors.white), .toText19(isBold: true, color: Colors.white),
"${LocaleKeys.fileno.tr(context: context)}: ${appState.getAuthenticatedUser()!.patientId!}" "${LocaleKeys.fileno.tr(context: context)}: ${appState.getAuthenticatedUser()!.patientId!}"
.toText14(isBold: true, color: AppColors.greyTextColor, isEnglishOnly: true), .toText14(isBold: true, color: AppColors.greyTextColor),
], ],
).expanded, ).expanded,
Utils.buildSvgWithAssets(icon: AppAssets.habiblogo, width: 24.h, height: 24.h, applyThemeColor: false), Utils.buildSvgWithAssets(icon: AppAssets.habiblogo, width: 24.h, height: 24.h, applyThemeColor: false),

@ -17,6 +17,7 @@ import 'package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart';
import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart'; import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import 'dart:ui' as ui;
class LakumWalletDetails extends StatelessWidget { class LakumWalletDetails extends StatelessWidget {
const LakumWalletDetails({super.key}); const LakumWalletDetails({super.key});
@ -239,10 +240,10 @@ class LakumWalletDetails extends StatelessWidget {
return CustomButton( return CustomButton(
height: 46.h, height: 46.h,
icon: AppAssets.redeem_icon, icon: AppAssets.redeem_icon,
iconColor: AppColors.whiteColor, iconColor: AppColors.textColor,
iconSize: 24.h, iconSize: 24.h,
backgroundColor: AppColors.habibPharmacyColor, backgroundColor: AppColors.habibPharmacyColor,
textColor: AppColors.whiteColor, textColor: AppColors.textColor,
text: LocaleKeys.redeem.tr(context: context), text: LocaleKeys.redeem.tr(context: context),
borderWidth: 0.w, borderWidth: 0.w,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -350,7 +351,10 @@ class LakumWalletDetails extends StatelessWidget {
maxlines: 2, maxlines: 2,
), ),
SizedBox(height: 2.h), SizedBox(height: 2.h),
formattedDate.toText12(color: AppColors.greyTextColor), Directionality(
textDirection: ui.TextDirection.ltr,
child: formattedDate.toText12(color: AppColors.greyTextColor),
),
], ],
), ),
), ),
@ -363,10 +367,10 @@ class LakumWalletDetails extends StatelessWidget {
isBold: true, isBold: true,
color: transactionColor, color: transactionColor,
), ),
if (transaction.amount != null && transaction.amount! > 0) // if (transaction.amount != null && transaction.amount! > 0)
"${transaction.amount?.toStringAsFixed(2) ?? "0.00"} SAR".toText11( // "${transaction.amount?.toStringAsFixed(2) ?? "0.00"} SAR".toText11(
color: AppColors.greyTextColor, // color: AppColors.greyTextColor,
), // ),
], ],
), ),
], ],

@ -273,9 +273,9 @@ void showCommonBottomSheetWithoutHeight(
if (navContext != null && Navigator.canPop(navContext)) { if (navContext != null && Navigator.canPop(navContext)) {
Navigator.of(navContext).pop(); Navigator.of(navContext).pop();
} }
if (callBackFunc != null) { // if (callBackFunc != null) {
callBackFunc(); // callBackFunc();
} // }
}); });
} }
return SafeArea( return SafeArea(

Loading…
Cancel
Save