Merge branch 'master' into haroon_dev

pull/293/head
haroon amjad 17 hours ago
commit bc95ed35d9

@ -48,7 +48,9 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
initiallyExpanded: true, initiallyExpanded: true,
children: [ children: [
SizedBox(height: 10.h), SizedBox(height: 10.h),
Container( SizedBox(
width: double.infinity,
child: Container(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.whiteColor, color: AppColors.whiteColor,
borderRadius: 12.r, borderRadius: 12.r,
@ -57,6 +59,7 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
padding: EdgeInsets.all(16.r), padding: EdgeInsets.all(16.r),
child: (analysis.prescriptionSummary ?? "").toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400), child: (analysis.prescriptionSummary ?? "").toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400),
), ),
),
SizedBox(height: 8.h), SizedBox(height: 8.h),
], ],
), ),
@ -94,7 +97,9 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
title: LocaleKeys.importantWarnings.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor), title: LocaleKeys.importantWarnings.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor),
children: [ children: [
SizedBox(height: 10.h), SizedBox(height: 10.h),
Container( SizedBox(
width: double.infinity,
child: Container(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.whiteColor, color: AppColors.whiteColor,
borderRadius: 12.r, borderRadius: 12.r,
@ -118,12 +123,12 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
}).toList(), }).toList(),
), ),
), ),
),
SizedBox(height: 8.h), SizedBox(height: 8.h),
], ],
), ),
); );
} }
// Medicine Interactions Section // Medicine Interactions Section
if (analysis.medicineInteractions != null && analysis.medicineInteractions!.isNotEmpty) { if (analysis.medicineInteractions != null && analysis.medicineInteractions!.isNotEmpty) {
expandableItems.add( expandableItems.add(
@ -133,7 +138,9 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
title: LocaleKeys.medicineInteractions.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor), title: LocaleKeys.medicineInteractions.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor),
children: [ children: [
SizedBox(height: 10.h), SizedBox(height: 10.h),
Container( SizedBox(
width: double.infinity,
child: Container(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.whiteColor, color: AppColors.whiteColor,
borderRadius: 12.r, borderRadius: 12.r,
@ -157,6 +164,7 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
}).toList(), }).toList(),
), ),
), ),
),
SizedBox(height: 8.h), SizedBox(height: 8.h),
], ],
), ),
@ -172,7 +180,9 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
title: LocaleKeys.followUpNeeded.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor), title: LocaleKeys.followUpNeeded.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor),
children: [ children: [
SizedBox(height: 10.h), SizedBox(height: 10.h),
Container( SizedBox(
width: double.infinity,
child: Container(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.whiteColor, color: AppColors.whiteColor,
borderRadius: 12.r, borderRadius: 12.r,
@ -181,6 +191,7 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
padding: EdgeInsets.all(16.r), padding: EdgeInsets.all(16.r),
child: (analysis.followUpNeeded ?? "").toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400), child: (analysis.followUpNeeded ?? "").toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400),
), ),
),
SizedBox(height: 8.h), SizedBox(height: 8.h),
], ],
), ),
@ -224,7 +235,9 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
} }
Widget _buildMedicineCard(MedicineAnalysis medicine) { Widget _buildMedicineCard(MedicineAnalysis medicine) {
return Container( return SizedBox(
width: double.infinity,
child: Container(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.whiteColor, color: AppColors.whiteColor,
borderRadius: 12.r, borderRadius: 12.r,
@ -282,7 +295,7 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
], ],
], ],
), ),
); ));
} }
Widget _buildInfoRow({ Widget _buildInfoRow({

Loading…
Cancel
Save