|
|
|
|
@ -95,7 +95,7 @@ class _PrescriptionDetailPageState extends State<PrescriptionDetailPage> {
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
@ -112,7 +112,7 @@ class _PrescriptionDetailPageState extends State<PrescriptionDetailPage> {
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
@ -132,7 +132,7 @@ class _PrescriptionDetailPageState extends State<PrescriptionDetailPage> {
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
@ -149,7 +149,7 @@ class _PrescriptionDetailPageState extends State<PrescriptionDetailPage> {
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
@ -185,116 +185,115 @@ class _PrescriptionDetailPageState extends State<PrescriptionDetailPage> {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.all(16.h),
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Image.network(
|
|
|
|
|
prescriptionVM.prescriptionDetailsList[index].imageThumbUrl!,
|
|
|
|
|
width: 60.h,
|
|
|
|
|
height: 60.h,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
).circle(100),
|
|
|
|
|
SizedBox(width: 8.h),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: prescriptionVM.prescriptionDetailsList[index].itemDescription!.toText16(isBold: true, maxlines: 2),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).paddingSymmetrical(16.h, 0.h),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
Wrap(
|
|
|
|
|
direction: Axis.horizontal,
|
|
|
|
|
spacing: 6.h,
|
|
|
|
|
runSpacing: 6.h,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Image.network(
|
|
|
|
|
prescriptionVM.prescriptionDetailsList[index].imageSRCUrl!,
|
|
|
|
|
width: 60.h,
|
|
|
|
|
height: 60.h,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
).circle(100),
|
|
|
|
|
SizedBox(width: 8.h),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: prescriptionVM.prescriptionDetailsList[index].itemDescription!.toText16(isBold: true, maxlines: 2),
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: "${LocaleKeys.route.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].route}",
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 30.h,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
Wrap(
|
|
|
|
|
direction: Axis.horizontal,
|
|
|
|
|
spacing: 6.h,
|
|
|
|
|
runSpacing: 6.h,
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: "${LocaleKeys.route.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].route}",
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 30.h,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: "${LocaleKeys.frequency.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].frequency}",
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 30.h,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: "${LocaleKeys.dailyDoses.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].doseDailyQuantity}",
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 30.h,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: "${LocaleKeys.frequency.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].frequency}",
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 30.h,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: "${LocaleKeys.days.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].days}",
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 30.h,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: "${LocaleKeys.dailyDoses.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].doseDailyQuantity}",
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 30.h,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.prescription_remarks_icon, width: 18.h, height: 18.h),
|
|
|
|
|
SizedBox(width: 9.h),
|
|
|
|
|
Expanded(child: "${LocaleKeys.remarks.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].remarks!}".toText10(isBold: true)),
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: "${LocaleKeys.days.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].days}",
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 30.h,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).paddingSymmetrical(16.h, 0.h),
|
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.prescription_remarks_icon, width: 18.h, height: 18.h),
|
|
|
|
|
SizedBox(width: 9.h),
|
|
|
|
|
Expanded(child: "${LocaleKeys.remarks.tr(context: context)}: ${prescriptionVM.prescriptionDetailsList[index].remarks!}".toText10(isBold: true)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
).paddingSymmetrical(16.h, 0.h),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
Divider(color: AppColors.borderOnlyColor.withValues(alpha: 0.05), height: 1.h),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|