no message #292

Merged
khansultan1 merged 1 commits from dev_sultan into master 20 hours ago

@ -48,14 +48,17 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
initiallyExpanded: true, initiallyExpanded: true,
children: [ children: [
SizedBox(height: 10.h), SizedBox(height: 10.h),
Container( SizedBox(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( width: double.infinity,
color: AppColors.whiteColor, child: Container(
borderRadius: 12.r, decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
side: BorderSide(width: 1, color: Color(0xFF0B85F7)), color: AppColors.whiteColor,
borderRadius: 12.r,
side: BorderSide(width: 1, color: Color(0xFF0B85F7)),
),
padding: EdgeInsets.all(16.r),
child: (analysis.prescriptionSummary ?? "").toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400),
), ),
padding: EdgeInsets.all(16.r),
child: (analysis.prescriptionSummary ?? "").toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400),
), ),
SizedBox(height: 8.h), SizedBox(height: 8.h),
], ],
@ -94,28 +97,31 @@ 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(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( width: double.infinity,
color: AppColors.whiteColor, child: Container(
borderRadius: 12.r, decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
side: BorderSide(width: 1, color: Color(0xFFFF5252)), color: AppColors.whiteColor,
), borderRadius: 12.r,
padding: EdgeInsets.all(16.r), side: BorderSide(width: 1, color: Color(0xFFFF5252)),
child: Column( ),
crossAxisAlignment: CrossAxisAlignment.start, padding: EdgeInsets.all(16.r),
children: analysis.importantWarnings!.map((warning) { child: Column(
return Padding( crossAxisAlignment: CrossAxisAlignment.start,
padding: EdgeInsets.only(bottom: 8.h), children: analysis.importantWarnings!.map((warning) {
child: Row( return Padding(
crossAxisAlignment: CrossAxisAlignment.start, padding: EdgeInsets.only(bottom: 8.h),
children: [ child: Row(
Icon(Icons.warning_amber_rounded, color: Color(0xFFFF5252), size: 18.w), crossAxisAlignment: CrossAxisAlignment.start,
SizedBox(width: 8.w), children: [
Expanded(child: warning.toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400)), Icon(Icons.warning_amber_rounded, color: Color(0xFFFF5252), size: 18.w),
], SizedBox(width: 8.w),
), Expanded(child: warning.toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400)),
); ],
}).toList(), ),
);
}).toList(),
),
), ),
), ),
SizedBox(height: 8.h), SizedBox(height: 8.h),
@ -123,7 +129,6 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
), ),
); );
} }
// 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,28 +138,31 @@ 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(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( width: double.infinity,
color: AppColors.whiteColor, child: Container(
borderRadius: 12.r, decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
side: BorderSide(width: 1, color: Color(0xFFFFAF15)), color: AppColors.whiteColor,
), borderRadius: 12.r,
padding: EdgeInsets.all(16.r), side: BorderSide(width: 1, color: Color(0xFFFFAF15)),
child: Column( ),
crossAxisAlignment: CrossAxisAlignment.start, padding: EdgeInsets.all(16.r),
children: analysis.medicineInteractions!.map((interaction) { child: Column(
return Padding( crossAxisAlignment: CrossAxisAlignment.start,
padding: EdgeInsets.only(bottom: 8.h), children: analysis.medicineInteractions!.map((interaction) {
child: Row( return Padding(
crossAxisAlignment: CrossAxisAlignment.start, padding: EdgeInsets.only(bottom: 8.h),
children: [ child: Row(
Icon(Icons.info_outline, color: Color(0xFFFFAF15), size: 18.w), crossAxisAlignment: CrossAxisAlignment.start,
SizedBox(width: 8.w), children: [
Expanded(child: interaction.toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400)), Icon(Icons.info_outline, color: Color(0xFFFFAF15), size: 18.w),
], SizedBox(width: 8.w),
), Expanded(child: interaction.toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400)),
); ],
}).toList(), ),
);
}).toList(),
),
), ),
), ),
SizedBox(height: 8.h), SizedBox(height: 8.h),
@ -172,14 +180,17 @@ 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(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( width: double.infinity,
color: AppColors.whiteColor, child: Container(
borderRadius: 12.r, decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
side: BorderSide(width: 1, color: AppColors.primaryRedColor), color: AppColors.whiteColor,
borderRadius: 12.r,
side: BorderSide(width: 1, color: AppColors.primaryRedColor),
),
padding: EdgeInsets.all(16.r),
child: (analysis.followUpNeeded ?? "").toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400),
), ),
padding: EdgeInsets.all(16.r),
child: (analysis.followUpNeeded ?? "").toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400),
), ),
SizedBox(height: 8.h), SizedBox(height: 8.h),
], ],
@ -224,14 +235,16 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
} }
Widget _buildMedicineCard(MedicineAnalysis medicine) { Widget _buildMedicineCard(MedicineAnalysis medicine) {
return Container( return SizedBox(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( width: double.infinity,
color: AppColors.whiteColor, child: Container(
borderRadius: 12.r, decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
side: BorderSide(width: 1, color: Color(0xFF4CAF50)), color: AppColors.whiteColor,
), borderRadius: 12.r,
padding: EdgeInsets.all(16.r), side: BorderSide(width: 1, color: Color(0xFF4CAF50)),
child: Column( ),
padding: EdgeInsets.all(16.r),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
// Medicine Name // Medicine Name
@ -282,7 +295,7 @@ class _PrescriptionAiAnalysisDetailedPageState extends State<PrescriptionAiAnaly
], ],
], ],
), ),
); ));
} }
Widget _buildInfoRow({ Widget _buildInfoRow({

Loading…
Cancel
Save