@ -15,35 +15,38 @@ import 'package:hmg_patient_app_new/presentation/lab/lab_results/lab_result_list
 
			
		
	
		
		
			
				
					
					import  ' package:hmg_patient_app_new/theme/colors.dart '  show  AppColors ; import  ' package:hmg_patient_app_new/theme/colors.dart '  show  AppColors ;  
			
		
	
		
		
			
				
					
					import  ' package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart ' ; import  ' package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart ' ;  
			
		
	
		
		
			
				
					
					import  ' package:hmg_patient_app_new/widgets/graph/custom_graph.dart ' ; import  ' package:hmg_patient_app_new/widgets/graph/custom_graph.dart ' ;  
			
		
	
		
		
			
				
					
					import  ' package:provider/provider.dart '  show  Consumer ,  Provider import  ' package:provider/provider.dart '  show  Consumer ,  Provider , ReadContext  ; 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					import  ' ../../../widgets/common_bottom_sheet.dart ' import  ' ../../../widgets/common_bottom_sheet.dart '  
			
		
	
		
		
			
				
					
					    show  showCommonBottomSheetWithoutHeight ; 
    show  showCommonBottomSheetWithoutHeight ; 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					class  LabResultDetails  extends  StatelessWidget  { class  LabResultDetails  extends  StatelessWidget  {  
			
		
	
		
		
			
				
					
					  final  LabResult  recentLabResult ; 
  final  LabResult  recentLabResult ; 
 
			
		
	
		
		
			
				
					
					  final  String ?  testDescription ; 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  / /  final  List < DataPoint >  graphPoint ; 
  const  LabResultDetails ( 
 
			
				
				
			
		
	
		
		
			
				
					
					  late  LabViewModel  model ; 
      { super . key , 
 
			
				
				
			
		
	
		
		
			
				
					
					  String ?  testDescription ; 
      required  this . recentLabResult , 
 
			
				
				
			
		
	
		
		
			
				
					
					
      required  this . testDescription } ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
					  LabResultDetails ( { super . key ,  required  this . recentLabResult ,  required  this . testDescription } ) ; 
 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  @ override 
  @ override 
 
			
		
	
		
		
			
				
					
					  Widget  build ( BuildContext  context )  { 
  Widget  build ( BuildContext  context )  { 
 
			
		
	
		
		
			
				
					
					    model  =  Provider . of < LabViewModel > ( context ,  listen:  false ) ; 
 
			
		
	
		
		
			
				
					
					    return  CollapsingListView ( 
    return  CollapsingListView ( 
 
			
		
	
		
		
			
				
					
					      title:  ' Lab Result Details ' . needTranslation , 
      title:  ' Lab Result Details ' . needTranslation , 
 
			
		
	
		
		
			
				
					
					      child:  SingleChildScrollView ( 
      child:  SingleChildScrollView ( 
 
			
		
	
		
		
			
				
					
					        child:  Column ( 
        child:  Column ( 
 
			
		
	
		
		
			
				
					
					          spacing:  16. h , 
          spacing:  16. h , 
 
			
		
	
		
		
			
				
					
					          children:  [ LabNameAndStatus ,  LabGraph ( context ) ] , 
          children:  [ 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					            LabNameAndStatus ( context ) , 
 
			
		
	
		
		
			
				
					
					            getLabDescription ( context ) , 
 
			
		
	
		
		
			
				
					
					            LabGraph ( context ) 
 
			
		
	
		
		
			
				
					
					          ] , 
 
			
		
	
		
		
			
				
					
					        ) . paddingAll ( 24. h ) , 
        ) . paddingAll ( 24. h ) , 
 
			
		
	
		
		
			
				
					
					      ) , 
      ) , 
 
			
		
	
		
		
			
				
					
					    ) ; 
    ) ; 
 
			
		
	
		
		
			
				
					
					  } 
  } 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  Widget  get  LabNameAndStatus  = >  Container ( 
  Widget  LabNameAndStatus ( BuildContext  context ) = >  Container ( 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					      decoration:  RoundedRectangleBorder ( ) . toSmoothCornerDecoration ( 
      decoration:  RoundedRectangleBorder ( ) . toSmoothCornerDecoration ( 
 
			
		
	
		
		
			
				
					
					        color:  AppColors . whiteColor , 
        color:  AppColors . whiteColor , 
 
			
		
	
		
		
			
				
					
					        borderRadius:  24. h , 
        borderRadius:  24. h , 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -80,11 +83,12 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					          / / todo  change  the  text  color  according  to  the  provided  test  values 
          / / todo  change  the  text  color  according  to  the  provided  test  values 
 
			
		
	
		
		
			
				
					
					          Row ( 
          Row ( 
 
			
		
	
		
		
			
				
					
					            crossAxisAlignment:  CrossAxisAlignment . center , 
            crossAxisAlignment:  CrossAxisAlignment . center , 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					            children:  [ 
            children:  [ 
 
			
		
	
		
		
			
				
					
					              Expanded ( 
              Expanded ( 
 
			
		
	
		
		
			
				
					
					                child:  Row ( 
                child:  Row ( 
 
			
		
	
		
		
			
				
					
					                  spacing:  4. h , 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					                  mainAxisSize:  MainAxisSize . max , 
 
			
		
	
		
		
			
				
					
					                  children:  [ 
                  children:  [ 
 
			
		
	
		
		
			
				
					
					                    Flexible ( 
                    Flexible ( 
 
			
		
	
		
		
			
				
					
					                      child:  Text ( 
                      child:  Text ( 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -93,7 +97,7 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					                          fontSize:  24. fSize , 
                          fontSize:  24. fSize , 
 
			
		
	
		
		
			
				
					
					                          fontWeight:  FontWeight . w600 , 
                          fontWeight:  FontWeight . w600 , 
 
			
		
	
		
		
			
				
					
					                          fontFamily:  ' Poppins ' , 
                          fontFamily:  ' Poppins ' , 
 
			
		
	
		
		
			
				
					
					                          color:  model . getColor ( 
                          color:  context. read < LabViewModel > ( )  . getColor ( 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					                                recentLabResult . calculatedResultFlag  ? ?  " " , 
                                recentLabResult . calculatedResultFlag  ? ?  " " , 
 
			
		
	
		
		
			
				
					
					                          ) , 
                          ) , 
 
			
		
	
		
		
			
				
					
					                          letterSpacing:  - 2 , 
                          letterSpacing:  - 2 , 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -103,7 +107,10 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					                        softWrap:  false , 
                        softWrap:  false , 
 
			
		
	
		
		
			
				
					
					                      ) , 
                      ) , 
 
			
		
	
		
		
			
				
					
					                    ) , 
                    ) , 
 
			
		
	
		
		
			
				
					
					                    Visibility ( 
                    SizedBox ( width:  4. h , ) , 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					                    Expanded ( 
 
			
		
	
		
		
			
				
					
					                      flex:  2 , 
 
			
		
	
		
		
			
				
					
					                      child:  Visibility ( 
 
			
		
	
		
		
			
				
					
					                        visible:  recentLabResult . referanceRange  ! =  null , 
                        visible:  recentLabResult . referanceRange  ! =  null , 
 
			
		
	
		
		
			
				
					
					                        child:  Text ( 
                        child:  Text ( 
 
			
		
	
		
		
			
				
					
					                          " (Reference range  ${ recentLabResult . referanceRange } ) " . needTranslation , 
                          " (Reference range  ${ recentLabResult . referanceRange } ) " . needTranslation , 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -113,37 +120,44 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					                            fontFamily:  ' Poppins ' , 
                            fontFamily:  ' Poppins ' , 
 
			
		
	
		
		
			
				
					
					                            color:  AppColors . greyTextColor , 
                            color:  AppColors . greyTextColor , 
 
			
		
	
		
		
			
				
					
					                          ) , 
                          ) , 
 
			
		
	
		
		
			
				
					
					                        overflow:  TextOverflow . ellipsis , 
                          / /  overflow:  TextOverflow . ellipsis , 
 
			
				
				
			
		
	
		
		
			
				
					
					                        maxLines:  1 , 
                          / /  maxLines:  2 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                        softWrap:  false , 
                          softWrap:  true , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                        ) , 
 
			
		
	
		
		
			
				
					
					                      ) , 
                      ) , 
 
			
		
	
		
		
			
				
					
					                    ) , 
                    ) , 
 
			
		
	
		
		
			
				
					
					                  ] , 
                  ] , 
 
			
		
	
		
		
			
				
					
					                ) , 
                ) , 
 
			
		
	
		
		
			
				
					
					              ) , 
              ) , 
 
			
		
	
		
		
			
				
					
					              Utils . buildSvgWithAssets ( 
              SizedBox ( 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					                width:  21 , 
 
			
		
	
		
		
			
				
					
					                child:  Utils . buildSvgWithAssets ( 
 
			
		
	
		
		
			
				
					
					                  icon:  AppAssets . lab_result_indicator , 
                  icon:  AppAssets . lab_result_indicator , 
 
			
		
	
		
		
			
				
					
					                  width:  21 , 
                  width:  21 , 
 
			
		
	
		
		
			
				
					
					                  height:  23 , 
                  height:  23 , 
 
			
		
	
		
		
			
				
					
					                iconColor:  model . getColor ( 
                  iconColor:  context . read < LabViewModel > ( )  . getColor ( 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					                        recentLabResult . calculatedResultFlag  ? ?  " " , 
                        recentLabResult . calculatedResultFlag  ? ?  " " , 
 
			
		
	
		
		
			
				
					
					                  ) , 
                  ) , 
 
			
		
	
		
		
			
				
					
					                ) , 
                ) , 
 
			
		
	
		
		
			
				
					
					              ) , 
 
			
		
	
		
		
			
				
					
					            ] , 
            ] , 
 
			
		
	
		
		
			
				
					
					          ) 
          ) 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					        ] , 
        ] , 
 
			
		
	
		
		
			
				
					
					      ) ) ; 
      ) ) ; 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  Widget  LabGraph ( BuildContext  context )  = >  Consumer < DateRangeSelectorRangeViewModel > ( 
  Widget  LabGraph ( BuildContext  context )  = >  Consumer < LabViewModel > ( 
 
			
				
				
			
		
	
		
		
			
				
					
					      builder:  ( _ ,  model ,  ___ )  = >  Consumer < LabViewModel > ( 
 
			
		
	
		
		
	
		
		
			
				
					
					        builder:  ( _ ,  labmodel ,  ___ )  = >  Container ( 
        builder:  ( _ ,  labmodel ,  ___ )  = >  Container ( 
 
			
		
	
		
		
			
				
					
					            decoration:  RoundedRectangleBorder ( ) . toSmoothCornerDecoration ( 
            decoration:  RoundedRectangleBorder ( ) . toSmoothCornerDecoration ( 
 
			
		
	
		
		
			
				
					
					              color:  AppColors . whiteColor , 
              color:  AppColors . whiteColor , 
 
			
		
	
		
		
			
				
					
					              borderRadius:  24. h , 
              borderRadius:  24. h , 
 
			
		
	
		
		
			
				
					
					              hasShadow:  true , 
              hasShadow:  true , 
 
			
		
	
		
		
			
				
					
					            ) , 
            ) , 
 
			
		
	
		
		
			
				
					
					                height:  model . isGraphVisible ? 260. h: ( labmodel . filteredGraphValues . length < 3 ) ? ( labmodel . filteredGraphValues . length * 64 ) + 80. h: 260. h , 
            height:  labmodel . isGraphVisible 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					                ?  260. h 
 
			
		
	
		
		
			
				
					
					                :  ( labmodel . filteredGraphValues . length  <  3 ) 
 
			
		
	
		
		
			
				
					
					                    ?  ( labmodel . filteredGraphValues . length  *  64 )  +  80. h 
 
			
		
	
		
		
			
				
					
					                    :  260. h , 
 
			
		
	
		
		
			
				
					
					            padding:  EdgeInsets . all ( 16. h ) , 
            padding:  EdgeInsets . all ( 16. h ) , 
 
			
		
	
		
		
			
				
					
					            child:  Column ( 
            child:  Column ( 
 
			
		
	
		
		
			
				
					
					              mainAxisAlignment:  MainAxisAlignment . spaceAround , 
              mainAxisAlignment:  MainAxisAlignment . spaceAround , 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -153,11 +167,12 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					                  mainAxisAlignment:  MainAxisAlignment . spaceBetween , 
                  mainAxisAlignment:  MainAxisAlignment . spaceBetween , 
 
			
		
	
		
		
			
				
					
					                  children:  [ 
                  children:  [ 
 
			
		
	
		
		
			
				
					
					                    Text ( 
                    Text ( 
 
			
		
	
		
		
			
				
					
					                          model . isGraphVisible ? LocaleKeys . historyFlowchart . tr ( ) :  LocaleKeys . history . tr ( ) , 
                      labmodel . isGraphVisible 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					                          ?  LocaleKeys . historyFlowchart . tr ( ) 
 
			
		
	
		
		
			
				
					
					                          :  LocaleKeys . history . tr ( ) , 
 
			
		
	
		
		
			
				
					
					                      style:  TextStyle ( 
                      style:  TextStyle ( 
 
			
		
	
		
		
			
				
					
					                        fontSize:  16 , 
                        fontSize:  16 , 
 
			
		
	
		
		
			
				
					
					                        fontFamily:  ' Poppins ' , 
                        fontFamily:  ' Poppins ' , 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					                        fontWeight:  FontWeight . w600 , 
                        fontWeight:  FontWeight . w600 , 
 
			
		
	
		
		
			
				
					
					                        color:  AppColors . textColor , 
                        color:  AppColors . textColor , 
 
			
		
	
		
		
			
				
					
					                      ) , 
                      ) , 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -167,11 +182,15 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					                      children:  [ 
                      children:  [ 
 
			
		
	
		
		
			
				
					
					                        / / todo  handle  when  the  graph  icon  is  being  displayed 
                        / / todo  handle  when  the  graph  icon  is  being  displayed 
 
			
		
	
		
		
			
				
					
					                        Utils . buildSvgWithAssets ( 
                        Utils . buildSvgWithAssets ( 
 
			
		
	
		
		
			
				
					
					                                    icon:  model . isGraphVisible ? AppAssets . ic_list: AppAssets . ic_graph , 
                                icon:  labmodel . isGraphVisible 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					                                    ?  AppAssets . ic_list 
 
			
		
	
		
		
			
				
					
					                                    :  AppAssets . ic_graph , 
 
			
		
	
		
		
			
				
					
					                                width:  24. h , 
                                width:  24. h , 
 
			
		
	
		
		
			
				
					
					                                height:  24. h ) 
                                height:  24. h ) 
 
			
		
	
		
		
			
				
					
					                            . onPress ( ( )  { 
                            . onPress ( ( )  { 
 
			
		
	
		
		
			
				
					
					                                  model . alterGraphVisibility ( ) ; 
                          if  ( labmodel . shouldShowGraph )  { 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					                            labmodel . alterGraphVisibility ( ) ; 
 
			
		
	
		
		
			
				
					
					                          } 
 
			
		
	
		
		
			
				
					
					                        } ) , 
                        } ) , 
 
			
		
	
		
		
			
				
					
					                        Utils . buildSvgWithAssets ( 
                        Utils . buildSvgWithAssets ( 
 
			
		
	
		
		
			
				
					
					                                icon:  AppAssets . ic_date_filter , 
                                icon:  AppAssets . ic_date_filter , 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -183,7 +202,6 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					                            context , 
                            context , 
 
			
		
	
		
		
			
				
					
					                            child:  DateRangeSelector ( 
                            child:  DateRangeSelector ( 
 
			
		
	
		
		
			
				
					
					                              onRangeSelected:  ( start ,  end )  { 
                              onRangeSelected:  ( start ,  end )  { 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					                                / /  if  ( start  ! =  null )  { 
                                / /  if  ( start  ! =  null )  { 
 
			
		
	
		
		
			
				
					
					                                labmodel . getSelectedDateRange ( start ,  end ) ; 
                                labmodel . getSelectedDateRange ( start ,  end ) ; 
 
			
		
	
		
		
			
				
					
					                                / /  } 
                                / /  } 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -197,11 +215,11 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					                      ] , 
                      ] , 
 
			
		
	
		
		
			
				
					
					                    ) 
                    ) 
 
			
		
	
		
		
			
				
					
					                  ] , 
                  ] , 
 
			
		
	
		
		
			
				
					
					                     ) . paddingOnly ( bottom:  . isGraphVisible ?  16. h  : 24. h ) , 
                ) . paddingOnly ( bottom:  lab model. isGraphVisible   ?  16. h  :   24. h ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                     historyBody ( model ,  labmodel ) 
                historyBody ( labmodel ) 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					              ] , 
              ] , 
 
			
		
	
		
		
			
				
					
					            ) ) , 
            ) ) , 
 
			
		
	
		
		
			
				
					
					          )  ) ; 
      ) ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  Widget  leftLabels ( String  value )  { 
  Widget  leftLabels ( String  value )  { 
 
			
		
	
		
		
			
				
					
					    return  Text ( 
    return  Text ( 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -229,17 +247,15 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					    ) ; 
    ) ; 
 
			
		
	
		
		
			
				
					
					  } 
  } 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  Widget  historyBody ( DateRangeSelectorRangeViewModel model ,   LabViewModel labmodel )  { 
  Widget  historyBody ( labmodel )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					    if ( . isGraphVisible ) { 
    if   ( lab model. isGraphVisible  & &  labmodel . shouldShowGraph  )   { 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					      var  graphColor  =  labmodel . getColor ( recentLabResult . calculatedResultFlag ? ? " N " ) ; 
      var  graphColor  =  labmodel . getColor ( recentLabResult . calculatedResultFlag ? ? " N " ) ; 
 
			
		
	
		
		
			
				
					
					      return  CustomGraph ( 
      return  CustomGraph ( 
 
			
		
	
		
		
			
				
					
					          dataPoints:  labmodel . filteredGraphValues , 
          dataPoints:  labmodel . filteredGraphValues , 
 
			
		
	
		
		
			
				
					
					          / /  maxY:  100 , 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					          makeGraphBasedOnActualValue:  true , 
          makeGraphBasedOnActualValue:  true , 
 
			
		
	
		
		
			
				
					
					          leftLabelReservedSize:  40 , 
          leftLabelReservedSize:  40 , 
 
			
		
	
		
		
			
				
					
					          leftLabelInterval:  getInterval ( labmodel ) , 
          leftLabelInterval:  getInterval ( labmodel ) , 
 
			
		
	
		
		
			
				
					
					          maxY:  ( labmodel . maxY ) + ( getInterval ( labmodel ) ? ? 0 ) / 5 , 
          maxY:  ( labmodel . maxY ) + ( getInterval ( labmodel ) ? ? 0 ) / 2 , 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					          maxX:  labmodel . filteredGraphValues . length . toDouble ( ) - . 75 , 
          maxX:  labmodel . filteredGraphValues . length . toDouble ( ) - . 75 , 
 
			
		
	
		
		
			
				
					
					          leftLabelFormatter:  ( value )  { 
          leftLabelFormatter:  ( value )  { 
 
			
		
	
		
		
			
				
					
					            return  leftLabels ( value . toStringAsFixed ( 2 ) . tr ( ) ) ; 
            return  leftLabels ( value . toStringAsFixed ( 2 ) . tr ( ) ) ; 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -279,11 +295,11 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					          scrollDirection:  Axis . horizontal , 
          scrollDirection:  Axis . horizontal , 
 
			
		
	
		
		
			
				
					
					          height:  180. h ) ; 
          height:  180. h ) ; 
 
			
		
	
		
		
			
				
					
					    } else  { 
    } else  { 
 
			
		
	
		
		
			
				
					
					      return  labHistoryList ( model,   labmodel) ; 
      return  labHistoryList ( ) ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    } 
    } 
 
			
		
	
		
		
			
				
					
					  } 
  } 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  Widget  labHistoryList ( DateRangeSelectorRangeViewModel model ,   LabViewModel labmodel )  { 
  Widget  labHistoryList ( labmodel )  { 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    return  SizedBox ( 
    return  SizedBox ( 
 
			
		
	
		
		
			
				
					
					      height:  labmodel . filteredGraphValues . length < 3 ? labmodel . filteredGraphValues . length * 64 : 180. h , 
      height:  labmodel . filteredGraphValues . length < 3 ? labmodel . filteredGraphValues . length * 64 : 180. h , 
 
			
		
	
		
		
			
				
					
					      child:  ListView . separated ( 
      child:  ListView . separated ( 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -315,4 +331,27 @@ class LabResultDetails extends StatelessWidget {
 
			
		
	
		
		
			
				
					
					    if ( maxX  > 100  & &  maxX  <  200 )  return  30 ; 
    if ( maxX  > 100  & &  maxX  <  200 )  return  30 ; 
 
			
		
	
		
		
			
				
					
					    return  50 ; 
    return  50 ; 
 
			
		
	
		
		
			
				
					
					  } 
  } 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  Widget  getLabDescription ( BuildContext  context )  { 
 
			
		
	
		
		
			
				
					
					    return  Container ( 
 
			
		
	
		
		
			
				
					
					        decoration:  RoundedRectangleBorder ( ) . toSmoothCornerDecoration ( 
 
			
		
	
		
		
			
				
					
					          color:  AppColors . whiteColor , 
 
			
		
	
		
		
			
				
					
					          borderRadius:  24. h , 
 
			
		
	
		
		
			
				
					
					          hasShadow:  true , 
 
			
		
	
		
		
			
				
					
					        ) , 
 
			
		
	
		
		
			
				
					
					        height:  98. h , 
 
			
		
	
		
		
			
				
					
					        padding:  EdgeInsets . all ( 16. h ) , 
 
			
		
	
		
		
			
				
					
					        child:  Column ( 
 
			
		
	
		
		
			
				
					
					          crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					          spacing:  8. h , 
 
			
		
	
		
		
			
				
					
					          children:  [ 
 
			
		
	
		
		
			
				
					
					            " What is this result? " 
 
			
		
	
		
		
			
				
					
					                . needTranslation 
 
			
		
	
		
		
			
				
					
					                . toText16 ( weight:  FontWeight . w600 ,  color:  AppColors . textColor ) , 
 
			
		
	
		
		
			
				
					
					            testDescription ? . toText12 ( 
 
			
		
	
		
		
			
				
					
					                    fontWeight:  FontWeight . w500 ,  color:  AppColors . textColorLight )  ? ? 
 
			
		
	
		
		
			
				
					
					                SizedBox . shrink ( ) 
 
			
		
	
		
		
			
				
					
					          ] , 
 
			
		
	
		
		
			
				
					
					        ) ) ; 
 
			
		
	
		
		
			
				
					
					  } 
 
			
		
	
		
		
			
				
					
					} }