|
|
|
|
@ -45,11 +45,14 @@ class _LabAiAnalysisDetailedPageState extends State<LabAiAnalysisDetailedPage> {
|
|
|
|
|
if (analysis.summary != null && analysis.summary!.isNotEmpty) {
|
|
|
|
|
expandableItems.add(
|
|
|
|
|
ExpandableListItem(
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
expandedBackgroundColor:Colors.transparent ,
|
|
|
|
|
title: LocaleKeys.summary.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor),
|
|
|
|
|
initiallyExpanded: true,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 10.h),
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 12.r, side: BorderSide(width: 1, color: Color(0xFF0B85F7))),
|
|
|
|
|
padding: EdgeInsets.all(16.r),
|
|
|
|
|
child: (analysis.summary ?? "").toText14(color: AppColors.textColorLight, height: 1.5, weight: FontWeight.w400),
|
|
|
|
|
@ -64,6 +67,9 @@ class _LabAiAnalysisDetailedPageState extends State<LabAiAnalysisDetailedPage> {
|
|
|
|
|
if (analysis.aiGeneratedAttributes != null && analysis.aiGeneratedAttributes!.isNotEmpty) {
|
|
|
|
|
expandableItems.add(
|
|
|
|
|
ExpandableListItem(
|
|
|
|
|
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
expandedBackgroundColor:Colors.transparent ,
|
|
|
|
|
title: LocaleKeys.labResults.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor),
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 10.h),
|
|
|
|
|
@ -84,6 +90,8 @@ class _LabAiAnalysisDetailedPageState extends State<LabAiAnalysisDetailedPage> {
|
|
|
|
|
if (analysis.aiPredictions != null && analysis.aiPredictions!.isNotEmpty) {
|
|
|
|
|
expandableItems.add(
|
|
|
|
|
ExpandableListItem(
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
expandedBackgroundColor:Colors.transparent ,
|
|
|
|
|
title: LocaleKeys.prediction.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor),
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 10.h),
|
|
|
|
|
@ -105,6 +113,8 @@ class _LabAiAnalysisDetailedPageState extends State<LabAiAnalysisDetailedPage> {
|
|
|
|
|
if (analysis.aiRecommendations != null && analysis.aiRecommendations!.isNotEmpty) {
|
|
|
|
|
expandableItems.add(
|
|
|
|
|
ExpandableListItem(
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
expandedBackgroundColor:Colors.transparent ,
|
|
|
|
|
title: LocaleKeys.suggestions.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor),
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 10.h),
|
|
|
|
|
@ -152,6 +162,8 @@ class _LabAiAnalysisDetailedPageState extends State<LabAiAnalysisDetailedPage> {
|
|
|
|
|
if (analysis.riskFactors != null && analysis.riskFactors!.isNotEmpty) {
|
|
|
|
|
expandableItems.add(
|
|
|
|
|
ExpandableListItem(
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
expandedBackgroundColor:Colors.transparent ,
|
|
|
|
|
title: LocaleKeys.riskFactors.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor),
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 10.h),
|
|
|
|
|
@ -221,6 +233,8 @@ class _LabAiAnalysisDetailedPageState extends State<LabAiAnalysisDetailedPage> {
|
|
|
|
|
if (analysis.prevention != null && analysis.prevention!.isNotEmpty) {
|
|
|
|
|
expandableItems.add(
|
|
|
|
|
ExpandableListItem(
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
expandedBackgroundColor:Colors.transparent ,
|
|
|
|
|
title: LocaleKeys.prevention.tr(context: context).toText18(weight: FontWeight.w700, color: AppColors.blackColor),
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 10.h),
|
|
|
|
|
@ -308,10 +322,11 @@ class _LabAiAnalysisDetailedPageState extends State<LabAiAnalysisDetailedPage> {
|
|
|
|
|
else
|
|
|
|
|
CustomExpandableList(
|
|
|
|
|
expansionMode: ExpansionMode.exactlyOne,
|
|
|
|
|
dividerColor: Color(0xff2b353e1a),
|
|
|
|
|
dividerColor: AppColors.dividerColor,
|
|
|
|
|
itemPadding: EdgeInsets.symmetric(vertical: 16.h, horizontal: 14.h),
|
|
|
|
|
items: expandableItems,
|
|
|
|
|
theme: ExpandableListTheme.custom(
|
|
|
|
|
|
|
|
|
|
defaultTrailingIcon: Utils.buildSvgWithAssets(icon: AppAssets.arrow_down, height: 22.h, width: 22.w, iconColor: AppColors.textColor),
|
|
|
|
|
),
|
|
|
|
|
).paddingSymmetrical(16.w, 0.0),
|
|
|
|
|
|