family file button fix

pull/176/head
aamir-csol 3 months ago
parent 245b66150f
commit 8c7f4afe76

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

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

@ -432,6 +432,15 @@ class AuthenticationViewModel extends ChangeNotifier {
} else { } else {
// TODO: Handle isSMSSent false // TODO: Handle isSMSSent false
// navigateToOTPScreen(otpTypeEnum: otpTypeEnum, phoneNumber: phoneNumber); // 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 insuranceAndPayments = 'insuranceAndPayments';
static const trackerAndOthers = 'trackerAndOthers'; static const trackerAndOthers = 'trackerAndOthers';
static const bmi = 'bmi'; static const bmi = 'bmi';
static const unableToSendOTP = 'unableToSendOTP';
} }

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

@ -321,7 +321,7 @@ class _FamilyCardsState extends State<FamilyCards> {
: Expanded( : Expanded(
child: CustomButton( child: CustomButton(
height: 40.h, height: 40.h,
text: LocaleKeys.confirm.tr(), text: LocaleKeys.acceptLbl.tr(),
onPressed: () { onPressed: () {
navigationService.pop(); navigationService.pop();
widget.onSelect(profile); widget.onSelect(profile);
@ -329,6 +329,7 @@ class _FamilyCardsState extends State<FamilyCards> {
backgroundColor: AppColors.lightGreenButtonColor, backgroundColor: AppColors.lightGreenButtonColor,
borderColor: AppColors.lightGreenButtonColor, borderColor: AppColors.lightGreenButtonColor,
textColor: AppColors.textGreenColor, textColor: AppColors.textGreenColor,
borderWidth: 0,
icon: null, icon: null,
), ),
), ),
@ -336,7 +337,7 @@ class _FamilyCardsState extends State<FamilyCards> {
Expanded( Expanded(
child: CustomButton( child: CustomButton(
height: 40.h, 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: () { onPressed: () {
navigationService.pop(); navigationService.pop();
widget.onRemove(profile); widget.onRemove(profile);

Loading…
Cancel
Save