|
|
|
|
@ -11,6 +11,7 @@ import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/book_appointments/book_appointments_view_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/book_appointments/models/resp_models/doctors_list_response_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/contact_us/contact_us_view_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/my_appointments/models/resp_models/patient_appointment_history_response_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/my_appointments/my_appointments_view_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/my_appointments/utils/appointment_type.dart';
|
|
|
|
|
@ -22,8 +23,12 @@ import 'package:hmg_patient_app_new/presentation/appointments/widgets/appointmen
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/appointments/widgets/appointment_doctor_card.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/appointments/widgets/ask_doctor_request_type_select.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/book_appointment/widgets/appointment_calendar.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/contact_us/feedback_page.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/lab/lab_orders_page.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/medical_file/widgets/lab_rad_card.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/prescriptions/prescription_detail_page.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/prescriptions/prescriptions_list_page.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/radiology/radiology_orders_page.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart';
|
|
|
|
|
@ -50,6 +55,7 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
|
|
|
|
|
late MyAppointmentsViewModel myAppointmentsViewModel;
|
|
|
|
|
late PrescriptionsViewModel prescriptionsViewModel;
|
|
|
|
|
late BookAppointmentsViewModel bookAppointmentsViewModel;
|
|
|
|
|
late ContactUsViewModel contactUsViewModel;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
@ -68,6 +74,7 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
|
|
|
|
|
myAppointmentsViewModel = Provider.of<MyAppointmentsViewModel>(context, listen: false);
|
|
|
|
|
prescriptionsViewModel = Provider.of<PrescriptionsViewModel>(context, listen: false);
|
|
|
|
|
bookAppointmentsViewModel = Provider.of<BookAppointmentsViewModel>(context, listen: false);
|
|
|
|
|
contactUsViewModel = Provider.of<ContactUsViewModel>(context, listen: false);
|
|
|
|
|
return Scaffold(
|
|
|
|
|
backgroundColor: AppColors.bgScaffoldColor,
|
|
|
|
|
body: Column(
|
|
|
|
|
@ -75,7 +82,16 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: CollapsingListView(
|
|
|
|
|
title: "Appointment Details".needTranslation,
|
|
|
|
|
report: AppointmentType.isArrived(widget.patientAppointmentHistoryResponseModel) ? () {} : null,
|
|
|
|
|
report: AppointmentType.isArrived(widget.patientAppointmentHistoryResponseModel)
|
|
|
|
|
? () {
|
|
|
|
|
contactUsViewModel.setPatientFeedbackSelectedAppointment(widget.patientAppointmentHistoryResponseModel);
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
CustomPageRoute(
|
|
|
|
|
page: FeedbackPage(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
@ -264,203 +280,264 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
// : SizedBox.shrink()
|
|
|
|
|
: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
"Lab & Radiology".needTranslation.toText18(isBold: true),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
GridView(
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
: GridView(
|
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
|
crossAxisCount: isTablet || isFoldable ? 3 : 2,
|
|
|
|
|
crossAxisSpacing: 13.w,
|
|
|
|
|
mainAxisSpacing: 13.w,
|
|
|
|
|
crossAxisCount: 3,
|
|
|
|
|
crossAxisSpacing: 16.h,
|
|
|
|
|
mainAxisSpacing: 16.w,
|
|
|
|
|
mainAxisExtent: 115.h,
|
|
|
|
|
),
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
children: [
|
|
|
|
|
MedicalFileCard(
|
|
|
|
|
label: LocaleKeys.labResults.tr(context: context),
|
|
|
|
|
label: "Eye Test Results".needTranslation,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
backgroundColor: AppColors.whiteColor,
|
|
|
|
|
svgIcon: AppAssets.lab_result_icon,
|
|
|
|
|
iconSize: 40.w,
|
|
|
|
|
svgIcon: AppAssets.eye_result_icon,
|
|
|
|
|
isLargeText: true,
|
|
|
|
|
),
|
|
|
|
|
iconSize: 36.w,
|
|
|
|
|
).onPress(() {
|
|
|
|
|
// myAppointmentsViewModel.setIsEyeMeasurementsAppointmentsLoading(true);
|
|
|
|
|
// myAppointmentsViewModel.onEyeMeasurementsTabChanged(0);
|
|
|
|
|
// myAppointmentsViewModel.getPatientEyeMeasurementAppointments();
|
|
|
|
|
// Navigator.of(context).push(
|
|
|
|
|
// CustomPageRoute(
|
|
|
|
|
// page: EyeMeasurementsAppointmentsPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
}),
|
|
|
|
|
MedicalFileCard(
|
|
|
|
|
label: "Radiology Results".needTranslation,
|
|
|
|
|
label: "Allergy Info".needTranslation,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
backgroundColor: AppColors.whiteColor,
|
|
|
|
|
svgIcon: AppAssets.radiology_icon,
|
|
|
|
|
iconSize: 40.w,
|
|
|
|
|
svgIcon: AppAssets.allergy_info_icon,
|
|
|
|
|
isLargeText: true,
|
|
|
|
|
iconSize: 36.w,
|
|
|
|
|
),
|
|
|
|
|
MedicalFileCard(
|
|
|
|
|
label: "Vaccine Info".needTranslation,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
backgroundColor: AppColors.whiteColor,
|
|
|
|
|
svgIcon: AppAssets.vaccine_info_icon,
|
|
|
|
|
isLargeText: true,
|
|
|
|
|
iconSize: 36.w,
|
|
|
|
|
).onPress(() {
|
|
|
|
|
// Navigator.of(context).push(
|
|
|
|
|
// CustomPageRoute(
|
|
|
|
|
// page: VaccineListPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
LocaleKeys.prescriptions.tr().toText18(isBold: true),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
// Consumer<PrescriptionsViewModel>(builder: (context, prescriptionVM, child) {
|
|
|
|
|
// return prescriptionVM.isPrescriptionsDetailsLoading
|
|
|
|
|
// ? const MoviesShimmerWidget()
|
|
|
|
|
// : Container(
|
|
|
|
|
// decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// borderRadius: 20.r,
|
|
|
|
|
// ),
|
|
|
|
|
// padding: EdgeInsets.all(16.w),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// ListView.separated(
|
|
|
|
|
// itemCount: prescriptionVM.prescriptionDetailsList.length,
|
|
|
|
|
// shrinkWrap: true,
|
|
|
|
|
// padding: EdgeInsets.only(right: 8.w),
|
|
|
|
|
// physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
// itemBuilder: (context, index) {
|
|
|
|
|
// return AnimationConfiguration.staggeredList(
|
|
|
|
|
// position: index,
|
|
|
|
|
// duration: const Duration(milliseconds: 500),
|
|
|
|
|
// child: SlideAnimation(
|
|
|
|
|
// verticalOffset: 100.0,
|
|
|
|
|
// child: FadeInAnimation(
|
|
|
|
|
// child: Row(
|
|
|
|
|
// Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Utils.buildSvgWithAssets(
|
|
|
|
|
// icon: AppAssets.prescription_item_icon,
|
|
|
|
|
// width: 40.h,
|
|
|
|
|
// height: 40.h,
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(width: 8.h),
|
|
|
|
|
// "Lab & Radiology".needTranslation.toText18(isBold: true),
|
|
|
|
|
// SizedBox(height: 16.h),
|
|
|
|
|
// Row(
|
|
|
|
|
// mainAxisSize: MainAxisSize.max,
|
|
|
|
|
// children: [
|
|
|
|
|
// Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// prescriptionVM.prescriptionDetailsList[index].itemDescription!
|
|
|
|
|
// .toText12(isBold: true, maxLine: 1),
|
|
|
|
|
// "Prescribed By: ${widget.patientAppointmentHistoryResponseModel.doctorTitle} ${widget.patientAppointmentHistoryResponseModel.doctorNameObj}"
|
|
|
|
|
// .needTranslation
|
|
|
|
|
// .toText10(
|
|
|
|
|
// weight: FontWeight.w500,
|
|
|
|
|
// color: AppColors.greyTextColor,
|
|
|
|
|
// letterSpacing: -0.4),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(width: 68.w),
|
|
|
|
|
// Transform.flip(
|
|
|
|
|
// flipX: appState.isArabic(),
|
|
|
|
|
// child: Utils.buildSvgWithAssets(
|
|
|
|
|
// icon: AppAssets.forward_arrow_icon,
|
|
|
|
|
// iconColor: AppColors.blackColor,
|
|
|
|
|
// width: 18.w,
|
|
|
|
|
// height: 13.h,
|
|
|
|
|
// fit: BoxFit.contain,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: LabRadCard(
|
|
|
|
|
// icon: AppAssets.lab_result_icon,
|
|
|
|
|
// labelText: LocaleKeys.labResults.tr(context: context),
|
|
|
|
|
// // labOrderTests: ["Complete blood count", "Creatinine", "Blood Sugar"],
|
|
|
|
|
// // labOrderTests: labViewModel.isLabOrdersLoading ? [] : labViewModel.labOrderTests,
|
|
|
|
|
// labOrderTests: [],
|
|
|
|
|
// // isLoading: labViewModel.isLabOrdersLoading,
|
|
|
|
|
// isLoading: false,
|
|
|
|
|
// ).onPress(() {
|
|
|
|
|
// Navigator.of(context).push(
|
|
|
|
|
// CustomPageRoute(
|
|
|
|
|
// page: LabOrdersPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// separatorBuilder: (BuildContext cxt, int index) => SizedBox(height: 16.h),
|
|
|
|
|
// }),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(width: 16.h),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: LabRadCard(
|
|
|
|
|
// icon: AppAssets.radiology_icon,
|
|
|
|
|
// labelText: LocaleKeys.radiology.tr(context: context),
|
|
|
|
|
// // labOrderTests: ["Chest X-ray", "Abdominal Ultrasound", "Dental X-ray"],
|
|
|
|
|
// labOrderTests: [],
|
|
|
|
|
// isLoading: false,
|
|
|
|
|
// ).onPress(() {
|
|
|
|
|
// prescriptionVM.setPrescriptionsDetailsLoading();
|
|
|
|
|
// Navigator.of(context).push(
|
|
|
|
|
// CustomPageRoute(
|
|
|
|
|
// page: PrescriptionDetailPage(prescriptionsResponseModel: getPrescriptionRequestModel()),
|
|
|
|
|
// page: RadiologyOrdersPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// }),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(height: 16.h),
|
|
|
|
|
// const Divider(color: AppColors.dividerColor),
|
|
|
|
|
// LocaleKeys.prescriptions.tr().toText18(isBold: true),
|
|
|
|
|
// SizedBox(height: 16.h),
|
|
|
|
|
// Wrap(
|
|
|
|
|
// runSpacing: 6.w,
|
|
|
|
|
// Consumer<PrescriptionsViewModel>(builder: (context, prescriptionVM, child) {
|
|
|
|
|
// return prescriptionVM.isPrescriptionsDetailsLoading
|
|
|
|
|
// ? const MoviesShimmerWidget()
|
|
|
|
|
// : Container(
|
|
|
|
|
// decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// borderRadius: 20.r,
|
|
|
|
|
// ),
|
|
|
|
|
// padding: EdgeInsets.all(16.w),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// // ListView.separated(
|
|
|
|
|
// // itemCount: prescriptionVM.prescriptionDetailsList.length,
|
|
|
|
|
// // shrinkWrap: true,
|
|
|
|
|
// // padding: EdgeInsets.only(right: 8.w),
|
|
|
|
|
// // physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
// // itemBuilder: (context, index) {
|
|
|
|
|
// // return AnimationConfiguration.staggeredList(
|
|
|
|
|
// // position: index,
|
|
|
|
|
// // duration: const Duration(milliseconds: 500),
|
|
|
|
|
// // child: SlideAnimation(
|
|
|
|
|
// // verticalOffset: 100.0,
|
|
|
|
|
// // child: FadeInAnimation(
|
|
|
|
|
// // child: Row(
|
|
|
|
|
// // children: [
|
|
|
|
|
// // Utils.buildSvgWithAssets(
|
|
|
|
|
// // icon: AppAssets.prescription_item_icon,
|
|
|
|
|
// // width: 40.h,
|
|
|
|
|
// // height: 40.h,
|
|
|
|
|
// // ),
|
|
|
|
|
// // SizedBox(width: 8.h),
|
|
|
|
|
// // Row(
|
|
|
|
|
// // mainAxisSize: MainAxisSize.max,
|
|
|
|
|
// // children: [
|
|
|
|
|
// // Column(
|
|
|
|
|
// // children: [
|
|
|
|
|
// // prescriptionVM.prescriptionDetailsList[index].itemDescription!
|
|
|
|
|
// // .toText12(isBold: true, maxLine: 1),
|
|
|
|
|
// // "Prescribed By: ${widget.patientAppointmentHistoryResponseModel.doctorTitle} ${widget.patientAppointmentHistoryResponseModel.doctorNameObj}"
|
|
|
|
|
// // .needTranslation
|
|
|
|
|
// // .toText10(
|
|
|
|
|
// // weight: FontWeight.w500,
|
|
|
|
|
// // color: AppColors.greyTextColor,
|
|
|
|
|
// // letterSpacing: -0.4),
|
|
|
|
|
// // ],
|
|
|
|
|
// // ),
|
|
|
|
|
// // SizedBox(width: 68.w),
|
|
|
|
|
// // Transform.flip(
|
|
|
|
|
// // flipX: appState.isArabic(),
|
|
|
|
|
// // child: Utils.buildSvgWithAssets(
|
|
|
|
|
// // icon: AppAssets.forward_arrow_icon,
|
|
|
|
|
// // iconColor: AppColors.blackColor,
|
|
|
|
|
// // width: 18.w,
|
|
|
|
|
// // height: 13.h,
|
|
|
|
|
// // fit: BoxFit.contain,
|
|
|
|
|
// // ),
|
|
|
|
|
// // ),
|
|
|
|
|
// // ],
|
|
|
|
|
// // ),
|
|
|
|
|
// // ],
|
|
|
|
|
// // ),
|
|
|
|
|
// // ),
|
|
|
|
|
// // ),
|
|
|
|
|
// // );
|
|
|
|
|
// // },
|
|
|
|
|
// // separatorBuilder: (BuildContext cxt, int index) => SizedBox(height: 16.h),
|
|
|
|
|
// // ).onPress(() {
|
|
|
|
|
// // prescriptionVM.setPrescriptionsDetailsLoading();
|
|
|
|
|
// // Navigator.of(context).push(
|
|
|
|
|
// // CustomPageRoute(
|
|
|
|
|
// // page: PrescriptionDetailPage(prescriptionsResponseModel: getPrescriptionRequestModel()),
|
|
|
|
|
// // ),
|
|
|
|
|
// // );
|
|
|
|
|
// // }),
|
|
|
|
|
// SizedBox(height: 16.h),
|
|
|
|
|
// const Divider(color: AppColors.dividerColor),
|
|
|
|
|
// SizedBox(height: 16.h),
|
|
|
|
|
// // Wrap(
|
|
|
|
|
// // runSpacing: 6.w,
|
|
|
|
|
// // children: [
|
|
|
|
|
// // // Expanded(
|
|
|
|
|
// // // child: CustomButton(
|
|
|
|
|
// // // text: widget.prescriptionsResponseModel.isHomeMedicineDeliverySupported! ? LocaleKeys.resendOrder.tr(context: context) : LocaleKeys.prescriptionDeliveryError.tr(context: context),
|
|
|
|
|
// // // onPressed: () {},
|
|
|
|
|
// // // backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// // // borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// // // textColor: AppColors.primaryRedColor,
|
|
|
|
|
// // // fontSize: 14,
|
|
|
|
|
// // // fontWeight: FontWeight.w500,
|
|
|
|
|
// // // borderRadius: 12.h,
|
|
|
|
|
// // // height: 40.h,
|
|
|
|
|
// // // icon: AppAssets.appointment_calendar_icon,
|
|
|
|
|
// // // iconColor: AppColors.primaryRedColor,
|
|
|
|
|
// // // iconSize: 16.h,
|
|
|
|
|
// // // ),
|
|
|
|
|
// // // ),
|
|
|
|
|
// // // SizedBox(width: 16.h),
|
|
|
|
|
// // Expanded(
|
|
|
|
|
// // child: CustomButton(
|
|
|
|
|
// // text: widget.prescriptionsResponseModel.isHomeMedicineDeliverySupported! ? LocaleKeys.resendOrder.tr(context: context) : LocaleKeys.prescriptionDeliveryError.tr(context: context),
|
|
|
|
|
// // onPressed: () {},
|
|
|
|
|
// // text: "Refill & Delivery".needTranslation,
|
|
|
|
|
// // onPressed: () {
|
|
|
|
|
// // Navigator.of(context)
|
|
|
|
|
// // .push(
|
|
|
|
|
// // CustomPageRoute(
|
|
|
|
|
// // page: PrescriptionsListPage(),
|
|
|
|
|
// // ),
|
|
|
|
|
// // )
|
|
|
|
|
// // .then((val) {
|
|
|
|
|
// // prescriptionsViewModel.setPrescriptionsDetailsLoading();
|
|
|
|
|
// // prescriptionsViewModel.getPrescriptionDetails(getPrescriptionRequestModel());
|
|
|
|
|
// // });
|
|
|
|
|
// // },
|
|
|
|
|
// // backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// // borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// // textColor: AppColors.primaryRedColor,
|
|
|
|
|
// // fontSize: 14,
|
|
|
|
|
// // fontSize: 14.f,
|
|
|
|
|
// // fontWeight: FontWeight.w500,
|
|
|
|
|
// // borderRadius: 12.h,
|
|
|
|
|
// // borderRadius: 12.r,
|
|
|
|
|
// // height: 40.h,
|
|
|
|
|
// // icon: AppAssets.appointment_calendar_icon,
|
|
|
|
|
// // icon: AppAssets.requests,
|
|
|
|
|
// // iconColor: AppColors.primaryRedColor,
|
|
|
|
|
// // iconSize: 16.h,
|
|
|
|
|
// // ),
|
|
|
|
|
// // ),
|
|
|
|
|
// // SizedBox(width: 16.h),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: CustomButton(
|
|
|
|
|
// text: "Refill & Delivery".needTranslation,
|
|
|
|
|
// onPressed: () {
|
|
|
|
|
// Navigator.of(context)
|
|
|
|
|
// .push(
|
|
|
|
|
// CustomPageRoute(
|
|
|
|
|
// page: PrescriptionsListPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
// .then((val) {
|
|
|
|
|
// prescriptionsViewModel.setPrescriptionsDetailsLoading();
|
|
|
|
|
// prescriptionsViewModel.getPrescriptionDetails(getPrescriptionRequestModel());
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
// backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// textColor: AppColors.primaryRedColor,
|
|
|
|
|
// fontSize: 14.f,
|
|
|
|
|
// fontWeight: FontWeight.w500,
|
|
|
|
|
// borderRadius: 12.r,
|
|
|
|
|
// height: 40.h,
|
|
|
|
|
// icon: AppAssets.requests,
|
|
|
|
|
// iconColor: AppColors.primaryRedColor,
|
|
|
|
|
// iconSize: 16.h,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
//
|
|
|
|
|
// SizedBox(width: 16.w),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: CustomButton(
|
|
|
|
|
// text: "All Prescriptions".needTranslation,
|
|
|
|
|
// onPressed: () {
|
|
|
|
|
// Navigator.of(context)
|
|
|
|
|
// .push(
|
|
|
|
|
// CustomPageRoute(
|
|
|
|
|
// page: PrescriptionsListPage(),
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
// .then((val) {
|
|
|
|
|
// prescriptionsViewModel.setPrescriptionsDetailsLoading();
|
|
|
|
|
// prescriptionsViewModel.getPrescriptionDetails(getPrescriptionRequestModel());
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
// backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// textColor: AppColors.primaryRedColor,
|
|
|
|
|
// fontSize: 14.f,
|
|
|
|
|
// fontWeight: FontWeight.w500,
|
|
|
|
|
// borderRadius: 12.r,
|
|
|
|
|
// height: 40.h,
|
|
|
|
|
// icon: AppAssets.requests,
|
|
|
|
|
// iconColor: AppColors.primaryRedColor,
|
|
|
|
|
// iconSize: 16.h,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// //
|
|
|
|
|
// // SizedBox(width: 16.w),
|
|
|
|
|
// // Expanded(
|
|
|
|
|
// // child: CustomButton(
|
|
|
|
|
// // text: "All Prescriptions".needTranslation,
|
|
|
|
|
// // onPressed: () {
|
|
|
|
|
// // Navigator.of(context)
|
|
|
|
|
// // .push(
|
|
|
|
|
// // CustomPageRoute(
|
|
|
|
|
// // page: PrescriptionsListPage(),
|
|
|
|
|
// // ),
|
|
|
|
|
// // )
|
|
|
|
|
// // .then((val) {
|
|
|
|
|
// // prescriptionsViewModel.setPrescriptionsDetailsLoading();
|
|
|
|
|
// // prescriptionsViewModel.getPrescriptionDetails(getPrescriptionRequestModel());
|
|
|
|
|
// // });
|
|
|
|
|
// // },
|
|
|
|
|
// // backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// // borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// // textColor: AppColors.primaryRedColor,
|
|
|
|
|
// // fontSize: 14.f,
|
|
|
|
|
// // fontWeight: FontWeight.w500,
|
|
|
|
|
// // borderRadius: 12.r,
|
|
|
|
|
// // height: 40.h,
|
|
|
|
|
// // icon: AppAssets.requests,
|
|
|
|
|
// // iconColor: AppColors.primaryRedColor,
|
|
|
|
|
// // iconSize: 16.h,
|
|
|
|
|
// // ),
|
|
|
|
|
// // ),
|
|
|
|
|
// // ],
|
|
|
|
|
// // ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// }),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
).paddingAll(24.w),
|
|
|
|
|
),
|
|
|
|
|
|