@ -37,6 +37,7 @@ import 'package:diplomaticquarterapp/pages/medical/reports/report_home_page.dart
import ' package:diplomaticquarterapp/pages/medical/smart_watch_health_data/smart_watch_instructions.dart ' ;
import ' package:diplomaticquarterapp/pages/medical/vital_sign/vital_sign_details_screen.dart ' ;
import ' package:diplomaticquarterapp/pages/vaccine/my_vaccines_screen.dart ' ;
import ' package:diplomaticquarterapp/theme/colors.dart ' ;
import ' package:diplomaticquarterapp/uitl/translations_delegate_base.dart ' ;
import ' package:diplomaticquarterapp/widgets/data_display/medical/medical_profile_item.dart ' ;
import ' package:diplomaticquarterapp/widgets/dialogs/alert_dialog.dart ' ;
@ -751,7 +752,31 @@ class Utils {
) ;
}
static Widget tableColumnValue ( String text , { bool isLast = false , bool isCapitable = true , ProjectViewModel mProjectViewModel } ) {
static Widget tableColumnValue ( String text , { bool isLast = false , bool isCapitable = true , bool isHighLow = false , ProjectViewModel mProjectViewModel } ) {
ProjectViewModel projectViewModel = mProjectViewModel ? ? Provider . of ( AppGlobal . context ) ;
return Column (
crossAxisAlignment: CrossAxisAlignment . start ,
mainAxisSize: MainAxisSize . min ,
children: [
SizedBox ( height: 12 ) ,
Text (
isCapitable & & ! projectViewModel . isArabic ? text . toLowerCase ( ) . capitalizeFirstofEach : text ,
maxLines: 2 ,
overflow: TextOverflow . ellipsis ,
style: TextStyle ( fontSize: 12 , fontWeight: FontWeight . w600 , color: isHighLow ? CustomColors . accentColor : Color ( 0xff575757 ) , letterSpacing: - 0.4 , height: 16 / 10 ) ,
) ,
SizedBox ( height: 12 ) ,
if ( ! isLast )
Divider (
height: 1 ,
color: Color ( 0xffEFEFEF ) ,
thickness: 1 ,
)
] ,
) ;
}
static Widget tableColumnValueWithFlowChart ( String text , String flowChartText , { bool isLast = false , bool isCapitable = true , ProjectViewModel mProjectViewModel } ) {
ProjectViewModel projectViewModel = mProjectViewModel ? ? Provider . of ( AppGlobal . context ) ;
return Column (
crossAxisAlignment: CrossAxisAlignment . start ,
@ -764,6 +789,13 @@ class Utils {
overflow: TextOverflow . ellipsis ,
style: TextStyle ( fontSize: 12 , fontWeight: FontWeight . w600 , color: Color ( 0xff575757 ) , letterSpacing: - 0.4 , height: 16 / 10 ) ,
) ,
SizedBox ( height: 8 ) ,
AutoSizeText (
flowChartText ,
maxLines: 1 ,
minFontSize: 6 ,
style: TextStyle ( decoration: TextDecoration . underline , fontSize: 12 , fontWeight: FontWeight . w600 , color: Color ( 0xffD02127 ) , letterSpacing: - 0.48 , height: 18 / 12 ) ,
) ,
SizedBox ( height: 12 ) ,
if ( ! isLast )
Divider (