family file button fix

dev_aamir
aamir-csol 1 week ago
parent 245b66150f
commit 8c7f4afe76

@ -1524,7 +1524,8 @@
"medicalServices": "الخدمات الطبية",
"insuranceAndPayments": "التأمين والمدفوعات",
"trackerAndOthers": "المتتبع وأخرى",
"bmi": "مؤشر كتلة الجسم"
"bmi": "مؤشر كتلة الجسم",
"unableToSendOTP": "تعذر إرسال رمز التحقق لمرة واحدة"
}

@ -1515,7 +1515,9 @@
"medicalServices": "Medical Services",
"insuranceAndPayments": "Insurance & Payments",
"trackerAndOthers": "Tracker & Others",
"bmi": "BMI"
"bmi": "BMI",
"unableToSendOTP": "Unable to send Verification OTP"
}

@ -432,6 +432,15 @@ class AuthenticationViewModel extends ChangeNotifier {
} else {
// TODO: Handle isSMSSent false
// navigateToOTPScreen(otpTypeEnum: otpTypeEnum, phoneNumber: phoneNumber);
if (isFormFamilyFile) {
LoaderBottomSheet.hideLoader();
await _dialogService.showCommonBottomSheetWithoutH(
message: LocaleKeys.unableToSendOTP.tr(),
label: LocaleKeys.notice.tr(),
onOkPressed: () {
_navigationService.pop();
});
}
}
}
},

@ -1512,5 +1512,6 @@ abstract class LocaleKeys {
static const insuranceAndPayments = 'insuranceAndPayments';
static const trackerAndOthers = 'trackerAndOthers';
static const bmi = 'bmi';
static const unableToSendOTP = 'unableToSendOTP';
}

@ -42,6 +42,8 @@ class _FamilyMedicalScreenState extends State<FamilyMedicalScreen> {
medicalVM = context.read<MedicalFileViewModel>();
WidgetsBinding.instance.addPostFrameCallback((_) {
medicalVM?.onFamilyFileTabChange(0);
medicalVM?.getAllPendingRecordsByResponseId();
});
}

@ -321,7 +321,7 @@ class _FamilyCardsState extends State<FamilyCards> {
: Expanded(
child: CustomButton(
height: 40.h,
text: LocaleKeys.confirm.tr(),
text: LocaleKeys.acceptLbl.tr(),
onPressed: () {
navigationService.pop();
widget.onSelect(profile);
@ -329,6 +329,7 @@ class _FamilyCardsState extends State<FamilyCards> {
backgroundColor: AppColors.lightGreenButtonColor,
borderColor: AppColors.lightGreenButtonColor,
textColor: AppColors.textGreenColor,
borderWidth: 0,
icon: null,
),
),
@ -336,7 +337,7 @@ class _FamilyCardsState extends State<FamilyCards> {
Expanded(
child: CustomButton(
height: 40.h,
text: profile.status == FamilyFileEnum.active.toInt ? LocaleKeys.removeMember.tr() : LocaleKeys.cancel.tr(),
text: profile.status == FamilyFileEnum.active.toInt ? LocaleKeys.removeMember.tr() : LocaleKeys.rejectView.tr(),
onPressed: () {
navigationService.pop();
widget.onRemove(profile);

Loading…
Cancel
Save