prescription details updates

pull/10/head
Haroon Amjad 2 months ago
parent cd61d08d49
commit e8f8f6074c

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

Loading…
Cancel
Save