|
|
|
@ -26,6 +26,7 @@ import 'package:hmg_patient_app_new/generated/locale_keys.g.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/appointments/my_appointments_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/appointments/my_appointments_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/appointments/my_doctors_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/appointments/my_doctors_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/book_appointment/book_appointment_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/book_appointment/book_appointment_page.dart';
|
|
|
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/book_appointment/doctor_profile_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/book_appointment/widgets/appointment_calendar.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/book_appointment/widgets/appointment_calendar.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/insurance/insurance_approvals_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/insurance/insurance_approvals_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/insurance/insurance_home_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/insurance/insurance_home_page.dart';
|
|
|
|
@ -200,9 +201,21 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppCustomChipWidget(
|
|
|
|
AppCustomChipWidget(
|
|
|
|
icon: AppAssets.blood_icon,
|
|
|
|
icon: AppAssets.blood_icon,
|
|
|
|
labelText: "${LocaleKeys.bloodType.tr(context: context)}: ${appState.getUserBloodGroup}",
|
|
|
|
labelText: "Blood: ${appState.getUserBloodGroup}",
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
|
|
|
|
labelPadding: EdgeInsetsDirectional.only(start: -4.h, end: 8.h),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Consumer<InsuranceViewModel>(builder: (context, insuranceVM, child) {
|
|
|
|
|
|
|
|
return AppCustomChipWidget(
|
|
|
|
|
|
|
|
icon: insuranceVM.isInsuranceExpired ? AppAssets.cancel_circle_icon : AppAssets.insurance_active_icon,
|
|
|
|
|
|
|
|
labelText: insuranceVM.isInsuranceExpired ? "Insurance Expired".needTranslation : "Insurance Active".needTranslation,
|
|
|
|
|
|
|
|
iconColor: insuranceVM.isInsuranceExpired ? AppColors.primaryRedColor : AppColors.successColor,
|
|
|
|
|
|
|
|
textColor: insuranceVM.isInsuranceExpired ? AppColors.primaryRedColor : AppColors.successColor,
|
|
|
|
|
|
|
|
iconSize: 12,
|
|
|
|
|
|
|
|
backgroundColor: insuranceVM.isInsuranceExpired ? AppColors.primaryRedColor.withOpacity(0.1) : AppColors.successColor.withOpacity(0.1),
|
|
|
|
|
|
|
|
labelPadding: EdgeInsetsDirectional.only(start: -4.h, end: 8.h),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -515,7 +528,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
fontSize: 12.3,
|
|
|
|
fontSize: 12,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
borderRadius: 12.h,
|
|
|
|
borderRadius: 12.h,
|
|
|
|
height: 40.h,
|
|
|
|
height: 40.h,
|
|
|
|
@ -532,7 +545,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
fontSize: 13,
|
|
|
|
fontSize: 12,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
borderRadius: 12.h,
|
|
|
|
borderRadius: 12.h,
|
|
|
|
height: 40.h,
|
|
|
|
height: 40.h,
|
|
|
|
@ -569,7 +582,6 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 10.h),
|
|
|
|
Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 10.h),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
).onPress(() {
|
|
|
|
).onPress(() {
|
|
|
|
myAppointmentsViewModel.setIsPatientMyDoctorsLoading(true);
|
|
|
|
|
|
|
|
myAppointmentsViewModel.getPatientMyDoctors();
|
|
|
|
myAppointmentsViewModel.getPatientMyDoctors();
|
|
|
|
Navigator.of(context).push(
|
|
|
|
Navigator.of(context).push(
|
|
|
|
CustomPageRoute(
|
|
|
|
CustomPageRoute(
|
|
|
|
@ -639,7 +651,31 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
).onPress(() async {
|
|
|
|
|
|
|
|
bookAppointmentsViewModel.setSelectedDoctor(DoctorsListResponseModel(
|
|
|
|
|
|
|
|
clinicID: myAppointmentsVM.patientMyDoctorsList[index].clinicID,
|
|
|
|
|
|
|
|
projectID: myAppointmentsVM.patientMyDoctorsList[index].projectID,
|
|
|
|
|
|
|
|
doctorID: myAppointmentsVM.patientMyDoctorsList[index].doctorID,
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
LoaderBottomSheet.showLoader();
|
|
|
|
|
|
|
|
await bookAppointmentsViewModel.getDoctorProfile(onSuccess: (dynamic respData) {
|
|
|
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
|
|
|
CustomPageRoute(
|
|
|
|
|
|
|
|
page: DoctorProfilePage(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}, onError: (err) {
|
|
|
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
|
|
|
showCommonBottomSheetWithoutHeight(
|
|
|
|
|
|
|
|
context,
|
|
|
|
|
|
|
|
child: Utils.getErrorWidget(loadingText: err),
|
|
|
|
|
|
|
|
callBackFunc: () {},
|
|
|
|
|
|
|
|
isFullScreen: false,
|
|
|
|
|
|
|
|
isCloseButtonVisible: true,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|