dev_v3.13.6_CS_V2
Haroon Amjad 1 year ago
parent 84c718656b
commit 48a0e0d949

@ -31,8 +31,8 @@ class ProjectViewModel extends BaseViewModel {
} }
AppSharedPreferences sharedPref = AppSharedPreferences(); AppSharedPreferences sharedPref = AppSharedPreferences();
Locale _appLocale = Locale('ar'); Locale _appLocale = Locale('en');
String currentLanguage = 'ar'; String currentLanguage = 'en';
bool _isArabic = true; bool _isArabic = true;
bool isInternetConnection = true; bool isInternetConnection = true;
bool isLoading = false; bool isLoading = false;

@ -164,7 +164,8 @@ class _MyApp extends State<MyApp> {
navigatorKey: locator<NavigationService>().navigatorKey, navigatorKey: locator<NavigationService>().navigatorKey,
showSemanticsDebugger: false, showSemanticsDebugger: false,
title: 'Dr. AlHabib', title: 'Dr. AlHabib',
locale: projectProvider.appLocal, // locale: projectProvider.appLocal,
locale: Locale('en'),
localizationsDelegates: [ localizationsDelegates: [
TranslationBaseDelegate(), TranslationBaseDelegate(),
GlobalMaterialLocalizations.delegate, GlobalMaterialLocalizations.delegate,

@ -11,6 +11,7 @@ import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart'; import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart'; import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:diplomaticquarterapp/uitl/utils_new.dart'; import 'package:diplomaticquarterapp/uitl/utils_new.dart';
import 'package:diplomaticquarterapp/vital_signs/GenderSelector.dart';
import 'package:diplomaticquarterapp/vital_signs/vital_sign.dart'; import 'package:diplomaticquarterapp/vital_signs/vital_sign.dart';
import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart'; import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart';
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart'; import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
@ -79,145 +80,114 @@ class _HomePageState2 extends State<HomePage2> {
], ],
), ),
), ),
child: Padding( child: Stack(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 16), children: [
child: Column( SvgPicture.asset("assets/images/HealthSnap/background.svg", height: MediaQuery.sizeOf(context).height,width: MediaQuery.sizeOf(context).width),
crossAxisAlignment: CrossAxisAlignment.start, Padding(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 16),
children: [ child: Column(
SvgPicture.asset(
'assets/images/new/cloud_logo.svg',
width: 80,
height: 80,
),
// mHeight(48.0),
Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( SvgPicture.asset(
"Welcome To", 'assets/images/new/cloud_logo.svg',
style: TextStyle(color: Color(0XFF2B353E), fontSize: 22, letterSpacing: 1.28, fontWeight: FontWeight.normal), width: 80,
), height: 80,
Text(
"HealthSnap",
style: TextStyle(color: Color(0XFF2B353E), fontSize: 26, letterSpacing: 1.28, fontWeight: FontWeight.bold),
), ),
mHeight(8.0), mHeight(96.0),
Container( Column(
padding: EdgeInsets.only(left: 6, right: 6), crossAxisAlignment: CrossAxisAlignment.start,
child: Row( children: [
children: [ Text(
Flexible( "Welcome To",
child: Row( style: TextStyle(color: Color(0XFF2B353E), fontSize: 22, letterSpacing: 1.28, fontWeight: FontWeight.normal),
children: [ ),
Radio( Text(
value: TranslationBase.of(context).male, "HealthSnap",
groupValue: radioValue, style: TextStyle(color: Color(0XFF2B353E), fontSize: 26, letterSpacing: 1.28, fontWeight: FontWeight.bold),
onChanged: (v) { ),
setState(() { mHeight(84.0),
radioValue = v!; Row(
}); mainAxisAlignment: MainAxisAlignment.center,
}, children: [
), GenderSelector(vectorUrl: 'assets/images/HealthSnap/female.svg', isSelected: radioValue == "female", onTap: (){
Text( setState(() {
TranslationBase.of(context).male, radioValue = "female";
style: TextStyle( });
fontSize: 12, }),
letterSpacing: -0.48, mWidth(24),
fontWeight: FontWeight.w600, GenderSelector(vectorUrl: 'assets/images/HealthSnap/male.svg', isSelected: radioValue == "male", onTap: (){
), setState(() {
), radioValue = "male";
], });
})
],
),
mHeight(64.0),
Row(
children: [
Expanded(
child: inputWidget(TranslationBase.of(context).weightAdd + " (kg)", "Enter", weightTextController),
), ),
), mWidth(8),
Flexible( Expanded(
child: Row( child: inputWidget(TranslationBase.of(context).height + " (cm)", "Enter", heightTextController),
children: [
Radio(
value: TranslationBase.of(context).female,
groupValue: radioValue,
onChanged: (v) {
setState(() {
radioValue = v!;
});
},
),
Text(
TranslationBase.of(context).female,
style: TextStyle(
fontSize: 12,
letterSpacing: -0.48,
fontWeight: FontWeight.w600,
),
),
],
), ),
), ],
],
),
),
Row(
children: [
Expanded(
child: inputWidget(TranslationBase.of(context).weightAdd + " (kg)", "Enter", weightTextController),
), ),
mWidth(8), mHeight(16.0),
Expanded( inputWidget(TranslationBase.of(context).age, "Enter", ageTextController),
child: inputWidget(TranslationBase.of(context).height + " (cm)", "Enter", heightTextController), mHeight(16.0),
// inputWidget(TranslationBase.of(context).weightAdd + " (kg)", "Enter", weightTextController),
// mHeight(16.0),
// inputWidget(TranslationBase.of(context).height + " (cm)", "Enter", heightTextController),
// mHeight(16.0),
DefaultButton(
TranslationBase.of(context).start,
(ageTextController.text == "" || weightTextController.text == "" || heightTextController.text == "")
? null
: () {
final UserInfo userInfo = UserInfo(
age: double.parse(ageTextController.text),
gender: radioValue == "male" ? Gender.male : Gender.female,
weight: double.parse(weightTextController.text),
// kg, Optional
height: double.parse(heightTextController.text),
// cm, Optional
waistCircumference: 0,
// cm Optional
userId: 'dbd13e86-47f4-4a43-85f6-cf62fa750117');
Navigator.push(context, FadePage(page: VitalSigns(userInfo: userInfo)));
},
color: Color(0XFF2B353E),
disabledColor: CustomColors.grey,
), ),
], ],
), ),
mHeight(16.0), // HomePageFragment2(
inputWidget(TranslationBase.of(context).age, "Enter", ageTextController), // model,
mHeight(16.0), // onLoginClick: () {
// inputWidget(TranslationBase.of(context).weightAdd + " (kg)", "Enter", weightTextController), // widget.onLoginClick!();
// mHeight(16.0), // // FirebaseCrashlytics.instance.crash();
// inputWidget(TranslationBase.of(context).height + " (cm)", "Enter", heightTextController), // // Navigator.pushNamed(
// mHeight(16.0), // // context,
DefaultButton( // // "zoom_call_page",
TranslationBase.of(context).start, // // arguments: CallArguments("h9qkpf02", "123", "Patient", "40", "1", false),
(ageTextController.text == "" || weightTextController.text == "" || heightTextController.text == "") // // );
? null // },
: () { // onPharmacyClick: () {
final UserInfo userInfo = UserInfo( // // getPharmacyToken(model);
age: double.parse(ageTextController.text), // Uri uri = Uri.parse(PHARMACY_REDIRECT_URL);
gender: radioValue == TranslationBase.of(context).male ? Gender.male : Gender.female, // launchUrl(uri, mode: LaunchMode.externalApplication);
weight: double.parse(weightTextController.text), // },
// kg, Optional // onMedicalFileClick: () {
height: double.parse(heightTextController.text), // widget.onMedicalFileClick!();
// cm, Optional // },
waistCircumference: 0, // )
// cm Optional
userId: 'dbd13e86-47f4-4a43-85f6-cf62fa750117');
Navigator.push(context, FadePage(page: VitalSigns(userInfo: userInfo)));
},
color: Color(0XFF2B353E),
disabledColor: CustomColors.grey,
),
], ],
), ),
// HomePageFragment2( ),
// model, ],
// onLoginClick: () {
// widget.onLoginClick!();
// // FirebaseCrashlytics.instance.crash();
// // Navigator.pushNamed(
// // context,
// // "zoom_call_page",
// // arguments: CallArguments("h9qkpf02", "123", "Patient", "40", "1", false),
// // );
// },
// onPharmacyClick: () {
// // getPharmacyToken(model);
// Uri uri = Uri.parse(PHARMACY_REDIRECT_URL);
// launchUrl(uri, mode: LaunchMode.externalApplication);
// },
// onMedicalFileClick: () {
// widget.onMedicalFileClick!();
// },
// )
],
),
), ),
), ),
), ),
@ -307,15 +277,15 @@ class _HomePageState2 extends State<HomePage2> {
prefixIcon: prefix == null prefixIcon: prefix == null
? null ? null
: Text( : Text(
"+" + prefix, "+" + prefix,
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
height: 21 / 14, height: 21 / 14,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Color(0xff2E303A), color: Color(0xff2E303A),
letterSpacing: -0.56, letterSpacing: -0.56,
), ),
), ),
contentPadding: EdgeInsets.zero, contentPadding: EdgeInsets.zero,
border: InputBorder.none, border: InputBorder.none,
focusedBorder: InputBorder.none, focusedBorder: InputBorder.none,

@ -0,0 +1,42 @@
import 'package:diplomaticquarterapp/theme/colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class GenderSelector extends StatelessWidget{
final String vectorUrl;
final bool isSelected;
final VoidCallback onTap;
const GenderSelector({super.key, required this.vectorUrl, required this.isSelected, required this.onTap});
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: (){
onTap();
},
behavior: HitTestBehavior.opaque,
child: SizedBox(
height: 120,width: 120,
child: Material(
shape: RoundedRectangleBorder(
side: isSelected?BorderSide(width: 5, color: CustomColors.accentColor): BorderSide.none,
borderRadius: BorderRadius.circular(100),
),
child: Material(
color: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(100),
),
child: Padding(
padding: const EdgeInsets.all(22.0),
child: SvgPicture.asset(vectorUrl, ),
),
),
),
),
);
}
}

@ -49,257 +49,252 @@ class ResultScreen extends StatelessWidget {
), ),
), ),
], ],
body: Padding( body: SingleChildScrollView(
padding: const EdgeInsets.all(15), child: Padding(
child: ListView( padding: const EdgeInsets.all(15),
shrinkWrap: true, child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
children: [ if (_holisticAnalysis != null && _holisticAnalysis?.generalWellness != null)
Expanded( VitalSignWidget(
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [ textColor: textColor,
if (_holisticAnalysis != null && _holisticAnalysis?.generalWellness != null) lookupValues: vitalValues['generalWellness']!,
VitalSignWidget( vitalSignName: TranslationBase.of(context).generalWellness,
textColor: textColor, condition: RangeConditionWithTitle.fromJson(vital['generalWellness']!, formatValueToTwoDp(healthResult?.holisticHealth?.generalWellness)),
lookupValues: vitalValues['generalWellness']!, vitalSignValue: formatValueToTwoDp(healthResult?.holisticHealth?.generalWellness),
vitalSignName: TranslationBase.of(context).generalWellness, vectorUrl: 'assets/images/svg/wellness.svg',
condition: RangeConditionWithTitle.fromJson(vital['generalWellness']!, formatValueToTwoDp(healthResult?.holisticHealth?.generalWellness)), vitalName: "generalWellness",
vitalSignValue: formatValueToTwoDp(healthResult?.holisticHealth?.generalWellness), ), //wellness
vectorUrl: 'assets/images/svg/wellness.svg', if (_vitalSign?.stress != null)
vitalName: "generalWellness", VitalSignWidget(
), //wellness textColor: textColor,
if (_vitalSign?.stress != null) vitalSignName: TranslationBase.of(context).stress,
VitalSignWidget( condition: RangeConditionWithTitle.fromJson(vital['stressLevel']!, formatValueToTwoDp(healthResult?.vitalSigns.stress)),
textColor: textColor, lookupValues: vitalValues['stressLevel']!,
vitalSignName: TranslationBase.of(context).stress, vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.stress),
condition: RangeConditionWithTitle.fromJson(vital['stressLevel']!, formatValueToTwoDp(healthResult?.vitalSigns.stress)), vectorUrl: 'assets/images/svg/stress.svg',
lookupValues: vitalValues['stressLevel']!, vitalName: "stressLevel",
vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.stress), ),
vectorUrl: 'assets/images/svg/stress.svg', VitalSignWidget(
vitalName: "stressLevel", textColor: textColor,
), vitalSignName: TranslationBase.of(context).pulseTitle,
VitalSignWidget( condition: RangeConditionWithTitle.fromJson(vital['HR']!, formatValueToTwoDp(healthResult?.vitalSigns.heartRate)),
textColor: textColor, lookupValues: vitalValues['HR']!,
vitalSignName: TranslationBase.of(context).pulseTitle, vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.heartRate),
condition: RangeConditionWithTitle.fromJson(vital['HR']!, formatValueToTwoDp(healthResult?.vitalSigns.heartRate)), vectorUrl: 'assets/images/svg/heartrate.svg',
lookupValues: vitalValues['HR']!, vitalName: "HR",
vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.heartRate), ),
//heart rate
if (_vitalSign?.bloodPressure != null)
VitalSignWidget(
textColor: textColor,
vitalSignName: "Blood Pressure",
condition: RangeConditionForBloodPressure.fromJson(vital['blood_pressure']!, healthResult?.vitalSigns.bloodPressure ?? ""),
bloodPressureValues: vitalValues['blood_pressure']!,
vitalSignValue: healthResult?.vitalSigns.bloodPressure ?? "",
vectorUrl: 'assets/images/svg/bloodpressure.svg',
vitalName: "blood_pressure",
),
if (_vitalSign?.hrvSdnn != null)
VitalSignWidget(
vectorUrl: 'assets/images/svg/heartrate.svg', vectorUrl: 'assets/images/svg/heartrate.svg',
vitalName: "HR",
),
//heart rate
if (_vitalSign?.bloodPressure != null)
VitalSignWidget(
textColor: textColor,
vitalSignName: "Blood Pressure",
condition: RangeConditionForBloodPressure.fromJson(vital['blood_pressure']!, healthResult?.vitalSigns.bloodPressure ?? ""),
bloodPressureValues: vitalValues['blood_pressure']!,
vitalSignValue: healthResult?.vitalSigns.bloodPressure ?? "",
vectorUrl: 'assets/images/svg/bloodpressure.svg',
vitalName: "blood_pressure",
),
if (_vitalSign?.hrvSdnn != null)
VitalSignWidget(
vectorUrl: 'assets/images/svg/heartrate.svg',
textColor: textColor,
vitalSignName: "HRV SDNN",
lookupValues: vitalValues['hrvv']!,
condition: RangeConditionWithTitle.fromJson(vital['hrvv']!, formatValueToTwoDp(healthResult?.vitalSigns.hrvSdnn)),
vitalName: "hrvv",
vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.hrvSdnn)),
//oxygen
VitalSignWidget(
textColor: textColor, textColor: textColor,
lookupValues: vitalValues['Sp02']!, vitalSignName: "HRV SDNN",
vitalName: "Sp02", lookupValues: vitalValues['hrvv']!,
vitalSignName: TranslationBase.of(context).oxygenSaturation, condition: RangeConditionWithTitle.fromJson(vital['hrvv']!, formatValueToTwoDp(healthResult?.vitalSigns.hrvSdnn)),
condition: RangeConditionWithTitle.fromJson(vital['Sp02']!, formatValueToTwoDp(healthResult?.vitalSigns.spo2)), vitalName: "hrvv",
vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.spo2), vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.hrvSdnn)),
vectorUrl: 'assets/images/svg/oxygen.svg',
),
if (_vitalSign?.respiratoryRate != null)
VitalSignWidget(
textColor: textColor,
lookupValues: vitalValues['respiratoryRate']!,
vitalName: "respiratoryRate",
vitalSignName: TranslationBase.of(context).respiratoryRate,
condition: RangeConditionWithTitle.fromJson(vital['respiratoryRate']!, formatValueToTwoDp(healthResult?.vitalSigns.respiratoryRate)),
vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.respiratoryRate),
vectorUrl: 'assets/images/svg/breathing.svg',
),
if (_holisticAnalysis != null && _holisticAnalysis?.bmi != null)
VitalSignWidget(
textColor: textColor,
lookupValues: vitalValues['bmi']!,
vitalName: "bmi",
vitalSignName: TranslationBase.of(context).BMI,
condition: RangeConditionWithTitle.fromJson(vital['bmi']!, formatValueToTwoDp(healthResult?.holisticHealth?.bmi)),
vitalSignValue: formatValueToTwoDp(healthResult?.holisticHealth?.bmi),
vectorUrl: 'assets/images/svg/bmi.svg',
),
// VitalSignWidget(
// textColor: textColor,
// vitalSignName: "IBI",
// condition: RangeConditionWithTitle.fromJson(vital['HR']!),
// vitalSignValue:
// formatValueToTwoDp(healthResult?.vitalSigns.ibi)),
// if (_vitalSign?.hrvRmssd != null) //oxygen
// VitalSignWidget( VitalSignWidget(
// textColor: textColor, textColor: textColor,
// vitalSignName: "HRV RMSSD", lookupValues: vitalValues['Sp02']!,
// vitalSignValue: formatValueToTwoDp( vitalName: "Sp02",
// healthResult?.vitalSigns.hrvRmssd)), vitalSignName: TranslationBase.of(context).oxygenSaturation,
condition: RangeConditionWithTitle.fromJson(vital['Sp02']!, formatValueToTwoDp(healthResult?.vitalSigns.spo2)),
vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.spo2),
vectorUrl: 'assets/images/svg/oxygen.svg',
),
if (_vitalSign?.respiratoryRate != null)
VitalSignWidget(
textColor: textColor,
lookupValues: vitalValues['respiratoryRate']!,
vitalName: "respiratoryRate",
vitalSignName: TranslationBase.of(context).respiratoryRate,
condition: RangeConditionWithTitle.fromJson(vital['respiratoryRate']!, formatValueToTwoDp(healthResult?.vitalSigns.respiratoryRate)),
vitalSignValue: formatValueToTwoDp(healthResult?.vitalSigns.respiratoryRate),
vectorUrl: 'assets/images/svg/breathing.svg',
),
if (_holisticAnalysis != null && _holisticAnalysis?.bmi != null)
VitalSignWidget(
textColor: textColor,
lookupValues: vitalValues['bmi']!,
vitalName: "bmi",
vitalSignName: TranslationBase.of(context).BMI,
condition: RangeConditionWithTitle.fromJson(vital['bmi']!, formatValueToTwoDp(healthResult?.holisticHealth?.bmi)),
vitalSignValue: formatValueToTwoDp(healthResult?.holisticHealth?.bmi),
vectorUrl: 'assets/images/svg/bmi.svg',
),
// VitalSignWidget(
// textColor: textColor,
// vitalSignName: "IBI",
// condition: RangeConditionWithTitle.fromJson(vital['HR']!),
// vitalSignValue:
// formatValueToTwoDp(healthResult?.vitalSigns.ibi)),
// if (_vitalSign?.temperature != null) // if (_vitalSign?.hrvRmssd != null)
// VitalSignWidget( // VitalSignWidget(
// textColor: textColor, // textColor: textColor,
// vitalSignName: "Temperature", // vitalSignName: "HRV RMSSD",
// vitalSignValue: formatValueToTwoDp( // vitalSignValue: formatValueToTwoDp(
// healthResult?.vitalSigns.temperature)), // healthResult?.vitalSigns.hrvRmssd)),
// if (_vitalSign?.bloodPressureSystolic != null) // if (_vitalSign?.temperature != null)
// VitalSignWidget( // VitalSignWidget(
// textColor: textColor, // textColor: textColor,
// vitalSignName: "Blood Pressure Systolic", // vitalSignName: "Temperature",
// vitalSignValue: formatValueToTwoDp(healthResult // vitalSignValue: formatValueToTwoDp(
// ?.vitalSigns.bloodPressureSystolic)), // healthResult?.vitalSigns.temperature)),
// if (_vitalSign?.bloodPressureDiastolic != null)
// VitalSignWidget(
// textColor: textColor,
// vitalSignName: "Blood Pressure Diastolic",
// vitalSignValue: formatValueToTwoDp(healthResult
// ?.vitalSigns.bloodPressureDiastolic)),
// if (_holisticAnalysis != null)
// Container(
// margin: const EdgeInsets.fromLTRB(0, 25, 0, 10),
// child: const Text(
// "Holistic Analysis",
// style: TextStyle(
// fontSize: 15,
// color: Colors.amber,
// fontWeight: FontWeight.bold,
// ),
// ),
// ),
// if (_holisticAnalysis != null && // if (_vitalSign?.bloodPressureSystolic != null)
// _holisticAnalysis?.absi != null) // VitalSignWidget(
// VitalSignWidget( // textColor: textColor,
// textColor: textColor, // vitalSignName: "Blood Pressure Systolic",
// vitalSignName: "ABSI", // vitalSignValue: formatValueToTwoDp(healthResult
// vitalSignValue: formatValueToTwoDp( // ?.vitalSigns.bloodPressureSystolic)),
// healthResult?.holisticHealth?.absi)), // if (_vitalSign?.bloodPressureDiastolic != null)
// if (_holisticAnalysis != null && // VitalSignWidget(
// _holisticAnalysis?.cardiacWorkload != null) // textColor: textColor,
// VitalSignWidget( // vitalSignName: "Blood Pressure Diastolic",
// textColor: textColor, // vitalSignValue: formatValueToTwoDp(healthResult
// vitalSignName: "Cardiac Workload", // ?.vitalSigns.bloodPressureDiastolic)),
// vitalSignValue: formatValueToTwoDp( // if (_holisticAnalysis != null)
// healthResult?.holisticHealth?.cardiacWorkload)), // Container(
// if (_holisticAnalysis != null && // margin: const EdgeInsets.fromLTRB(0, 25, 0, 10),
// _holisticAnalysis?.pulseRespiratoryQuotient != null) // child: const Text(
// VitalSignWidget( // "Holistic Analysis",
// textColor: textColor, // style: TextStyle(
// vitalSignName: "Pulse Respiratory Quotient", // fontSize: 15,
// vitalSignValue: formatValueToTwoDp(healthResult // color: Colors.amber,
// ?.holisticHealth?.pulseRespiratoryQuotient)), // fontWeight: FontWeight.bold,
// if (_holisticAnalysis != null && // ),
// _holisticAnalysis?.waistToHeightRatio != null) // ),
// VitalSignWidget( // ),
// textColor: textColor,
// vitalSignName: "Waist to Height Ratio", // if (_holisticAnalysis != null &&
// vitalSignValue: formatValueToTwoDp(healthResult // _holisticAnalysis?.absi != null)
// ?.holisticHealth?.waistToHeightRatio)), // VitalSignWidget(
// if (_cardiovascularRisks != null) // textColor: textColor,
// Container( // vitalSignName: "ABSI",
// margin: const EdgeInsets.fromLTRB(0, 25, 0, 10), // vitalSignValue: formatValueToTwoDp(
// child: const Text( // healthResult?.holisticHealth?.absi)),
// "Cardiovascular Risks", // if (_holisticAnalysis != null &&
// style: TextStyle( // _holisticAnalysis?.cardiacWorkload != null)
// fontSize: 15, // VitalSignWidget(
// color: Colors.amber, // textColor: textColor,
// fontWeight: FontWeight.bold, // vitalSignName: "Cardiac Workload",
// ), // vitalSignValue: formatValueToTwoDp(
// ), // healthResult?.holisticHealth?.cardiacWorkload)),
// ), // if (_holisticAnalysis != null &&
// if (_cardiovascularRisks != null) // _holisticAnalysis?.pulseRespiratoryQuotient != null)
// VitalSignWidget( // VitalSignWidget(
// textColor: textColor, // textColor: textColor,
// vitalSignName: TranslationBase.of(context).cvd, // vitalSignName: "Pulse Respiratory Quotient",
// condition: RangeConditionWithTitle.fromJson(vital['cvd']!, formatValueToTwoDp(healthResult // vitalSignValue: formatValueToTwoDp(healthResult
// ?.risks?.cardiovascularRisks?.generalRisk)), // ?.holisticHealth?.pulseRespiratoryQuotient)),
// vitalSignValue: formatValueToTwoDp(healthResult // if (_holisticAnalysis != null &&
// ?.risks?.cardiovascularRisks?.generalRisk), // _holisticAnalysis?.waistToHeightRatio != null)
// vectorUrl: 'assets/images/svg/heartrate.svg',), // VitalSignWidget(
// if (_cardiovascularRisks != null) // textColor: textColor,
// VitalSignWidget( // vitalSignName: "Waist to Height Ratio",
// textColor: textColor, // vitalSignValue: formatValueToTwoDp(healthResult
// vitalSignName: "Congestive Heart Failure", // ?.holisticHealth?.waistToHeightRatio)),
// vitalSignValue: formatValueToTwoDp(healthResult // if (_cardiovascularRisks != null)
// ?.risks // Container(
// ?.cardiovascularRisks // margin: const EdgeInsets.fromLTRB(0, 25, 0, 10),
// ?.congestiveHeartFailure)), // child: const Text(
// if (_cardiovascularRisks != null) // "Cardiovascular Risks",
// VitalSignWidget( // style: TextStyle(
// textColor: textColor, // fontSize: 15,
// vitalSignName: "Coronary Heart Disease", // color: Colors.amber,
// vitalSignValue: formatValueToTwoDp(healthResult // fontWeight: FontWeight.bold,
// ?.risks // ),
// ?.cardiovascularRisks // ),
// ?.coronaryHeartDisease)), // ),
// if (_cardiovascularRisks != null) // if (_cardiovascularRisks != null)
// VitalSignWidget( // VitalSignWidget(
// textColor: textColor, // textColor: textColor,
// vitalSignName: "Intermittent Claudication", // vitalSignName: TranslationBase.of(context).cvd,
// vitalSignValue: formatValueToTwoDp(healthResult // condition: RangeConditionWithTitle.fromJson(vital['cvd']!, formatValueToTwoDp(healthResult
// ?.risks // ?.risks?.cardiovascularRisks?.generalRisk)),
// ?.cardiovascularRisks // vitalSignValue: formatValueToTwoDp(healthResult
// ?.intermittentClaudication)), // ?.risks?.cardiovascularRisks?.generalRisk),
// if (_cardiovascularRisks != null) // vectorUrl: 'assets/images/svg/heartrate.svg',),
// VitalSignWidget( // if (_cardiovascularRisks != null)
// textColor: textColor, // VitalSignWidget(
// vitalSignName: "Stroke", // textColor: textColor,
// vitalSignValue: formatValueToTwoDp(healthResult // vitalSignName: "Congestive Heart Failure",
// ?.risks?.cardiovascularRisks?.stroke)), // vitalSignValue: formatValueToTwoDp(healthResult
// if (_covidRisk != null) // ?.risks
// Container( // ?.cardiovascularRisks
// margin: const EdgeInsets.fromLTRB(0, 25, 0, 10), // ?.congestiveHeartFailure)),
// child: const Text( // if (_cardiovascularRisks != null)
// "Covid Risks", // VitalSignWidget(
// style: TextStyle( // textColor: textColor,
// fontSize: 15, // vitalSignName: "Coronary Heart Disease",
// color: Colors.amber, // vitalSignValue: formatValueToTwoDp(healthResult
// fontWeight: FontWeight.bold, // ?.risks
// ), // ?.cardiovascularRisks
// ), // ?.coronaryHeartDisease)),
// ), // if (_cardiovascularRisks != null)
// if (_covidRisk != null) // VitalSignWidget(
// VitalSignWidget( // textColor: textColor,
// textColor: textColor, // vitalSignName: "Intermittent Claudication",
// vitalSignName: "Risk", // vitalSignValue: formatValueToTwoDp(healthResult
// vitalSignValue: formatValueToTwoDp( // ?.risks
// healthResult?.risks?.covidRisk?.covidRisk)), // ?.cardiovascularRisks
// if (_scanParameters != null) // ?.intermittentClaudication)),
// Container( // if (_cardiovascularRisks != null)
// margin: const EdgeInsets.fromLTRB(0, 25, 0, 10), // VitalSignWidget(
// child: const Text( // textColor: textColor,
// "Scan Parameters", // vitalSignName: "Stroke",
// style: TextStyle( // vitalSignValue: formatValueToTwoDp(healthResult
// fontSize: 15, // ?.risks?.cardiovascularRisks?.stroke)),
// color: Colors.amber, // if (_covidRisk != null)
// fontWeight: FontWeight.bold, // Container(
// ), // margin: const EdgeInsets.fromLTRB(0, 25, 0, 10),
// ), // child: const Text(
// ), // "Covid Risks",
// if (_scanParameters != null) // style: TextStyle(
// VitalSignWidget( // fontSize: 15,
// textColor: textColor, // color: Colors.amber,
// vitalSignName: "Signal Quality", // fontWeight: FontWeight.bold,
// vitalSignValue: formatValueToTwoDp( // ),
// healthResult?.scanParameters?.signalQuality)), // ),
]), // ),
), // if (_covidRisk != null)
], // VitalSignWidget(
// textColor: textColor,
// vitalSignName: "Risk",
// vitalSignValue: formatValueToTwoDp(
// healthResult?.risks?.covidRisk?.covidRisk)),
// if (_scanParameters != null)
// Container(
// margin: const EdgeInsets.fromLTRB(0, 25, 0, 10),
// child: const Text(
// "Scan Parameters",
// style: TextStyle(
// fontSize: 15,
// color: Colors.amber,
// fontWeight: FontWeight.bold,
// ),
// ),
// ),
// if (_scanParameters != null)
// VitalSignWidget(
// textColor: textColor,
// vitalSignName: "Signal Quality",
// vitalSignValue: formatValueToTwoDp(
// healthResult?.scanParameters?.signalQuality)),
]),
), ),
), ),
); );

@ -226,7 +226,7 @@ flutter:
- assets/payment_options/ - assets/payment_options/
- assets/images/new/ - assets/images/new/
- assets/images/new/HealthSnap/ - assets/images/HealthSnap/
- assets/images/new/zoom/ - assets/images/new/zoom/
- assets/images/new/inpatient/ - assets/images/new/inpatient/
- assets/images/new/mass/ - assets/images/new/mass/

Loading…
Cancel
Save