|
|
|
|
@ -44,406 +44,414 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
|
appBarTitle: TranslationBase.of(context).vitalSign,
|
|
|
|
|
body: mode.patientVitalSignsHistory.length > 0
|
|
|
|
|
? Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(16.0),
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"${patient.firstName ?? patient.patientDetails.firstName}'s",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.6,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).vitalSign,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 3,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.23,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.0),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.circular(16),
|
|
|
|
|
border: Border.fromBorderSide(BorderSide(
|
|
|
|
|
color: Colors.grey.shade400,
|
|
|
|
|
width: 0.4,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).yourBodyMassIndex} ${mode.bodyMax}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2.0,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 1
|
|
|
|
|
? '${assetBasePath}underweight_BMI.png'
|
|
|
|
|
: '${assetBasePath}underweight_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).bmiUnderWeight}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
color: mode.getBMIStatus() == 1
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(<18.5)",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
color: mode.getBMIStatus() == 1
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 2
|
|
|
|
|
? '${assetBasePath}health_BMI.png'
|
|
|
|
|
: '${assetBasePath}health_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
"${TranslationBase.of(context).normal}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 2
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(18.5-24.9)",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 2
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(16.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 3
|
|
|
|
|
? '${assetBasePath}ovrweight_BMI.png'
|
|
|
|
|
: '${assetBasePath}ovrweight_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).bmiOverWeight}",
|
|
|
|
|
"${patient.firstName ?? patient.patientDetails.firstName}'s",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.155,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 3
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.6,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(25-29.9)",
|
|
|
|
|
TranslationBase.of(context).vitalSign,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.155,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 3
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 3,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.23,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.circular(16),
|
|
|
|
|
border: Border.fromBorderSide(BorderSide(
|
|
|
|
|
color: Colors.grey.shade400,
|
|
|
|
|
width: 0.4,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 4
|
|
|
|
|
? '${assetBasePath}Obese_BMI.png'
|
|
|
|
|
: '${assetBasePath}Obese_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).bmiObese}",
|
|
|
|
|
"${TranslationBase.of(context).yourBodyMassIndex} ${mode.bodyMax}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2.0,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 4
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(30-34.9)",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 4
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 1
|
|
|
|
|
? '${assetBasePath}underweight_BMI.png'
|
|
|
|
|
: '${assetBasePath}underweight_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).bmiUnderWeight}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
color: mode.getBMIStatus() == 1
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(<18.5)",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
color: mode.getBMIStatus() == 1
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 2
|
|
|
|
|
? '${assetBasePath}health_BMI.png'
|
|
|
|
|
: '${assetBasePath}health_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
"${TranslationBase.of(context).normal}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 2
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(18.5-24.9)",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 2
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 3
|
|
|
|
|
? '${assetBasePath}ovrweight_BMI.png'
|
|
|
|
|
: '${assetBasePath}ovrweight_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).bmiOverWeight}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.155,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 3
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(25-29.9)",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.155,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 3
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 4
|
|
|
|
|
? '${assetBasePath}Obese_BMI.png'
|
|
|
|
|
: '${assetBasePath}Obese_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).bmiObese}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 4
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(30-34.9)",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 4
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 5
|
|
|
|
|
? '${assetBasePath}Obese_BMI.png'
|
|
|
|
|
: '${assetBasePath}Obese_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
FittedBox(
|
|
|
|
|
fit: BoxFit.fitWidth,
|
|
|
|
|
child: AppText(
|
|
|
|
|
"${TranslationBase.of(context).bmiObeseExtreme}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 5
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(35<)",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 5
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
mode.getBMIStatus() != 5
|
|
|
|
|
? '${assetBasePath}Obese_BMI.png'
|
|
|
|
|
: '${assetBasePath}Obese_BMI-r.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height * 0.10,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 4,
|
|
|
|
|
),
|
|
|
|
|
FittedBox(
|
|
|
|
|
fit: BoxFit.fitWidth,
|
|
|
|
|
child: AppText(
|
|
|
|
|
"${TranslationBase.of(context).bmiObeseExtreme}",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 5
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.0, vertical: 4),
|
|
|
|
|
child: GridView.count(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
crossAxisSpacing: 6,
|
|
|
|
|
mainAxisSpacing: 6,
|
|
|
|
|
childAspectRatio: 1.0 / 1.0,
|
|
|
|
|
crossAxisCount: 3,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Height,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).height,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
"(35<)",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: mode.getBMIStatus() == 5
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
|
|
child: GridView.count(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
crossAxisSpacing: 4,
|
|
|
|
|
mainAxisSpacing: 4,
|
|
|
|
|
childAspectRatio: 1 / 1.0,
|
|
|
|
|
crossAxisCount: 3,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Height,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).height,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).height,
|
|
|
|
|
imagePath: "${assetBasePath}height.png",
|
|
|
|
|
lastVal: mode.heightCm,
|
|
|
|
|
unit: TranslationBase.of(context).cm,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).height,
|
|
|
|
|
imagePath: "${assetBasePath}height.png",
|
|
|
|
|
lastVal: mode.heightCm,
|
|
|
|
|
unit: TranslationBase.of(context).cm,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Weight,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).weight,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Weight,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).weight,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).weight,
|
|
|
|
|
imagePath: "${assetBasePath}weight.png",
|
|
|
|
|
unit: TranslationBase.of(context).kg,
|
|
|
|
|
lastVal: mode.weightKg,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).weight,
|
|
|
|
|
imagePath: "${assetBasePath}weight.png",
|
|
|
|
|
unit: TranslationBase.of(context).kg,
|
|
|
|
|
lastVal: mode.weightKg,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Temperature,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.temperature,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Temperature,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.temperature,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).temperature,
|
|
|
|
|
imagePath: "${assetBasePath}temperature.png",
|
|
|
|
|
lastVal: mode.temperatureCelcius,
|
|
|
|
|
unit: TranslationBase.of(context).tempC,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).temperature,
|
|
|
|
|
imagePath: "${assetBasePath}temperature.png",
|
|
|
|
|
lastVal: mode.temperatureCelcius,
|
|
|
|
|
unit: TranslationBase.of(context).tempC,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.heart,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).heart,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.heart,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).heart,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).heart,
|
|
|
|
|
imagePath: "${assetBasePath}heart_rate.png",
|
|
|
|
|
lastVal: mode.hartRat,
|
|
|
|
|
unit: TranslationBase.of(context).bpm,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).heart,
|
|
|
|
|
imagePath: "${assetBasePath}heart_rate.png",
|
|
|
|
|
lastVal: mode.hartRat,
|
|
|
|
|
unit: TranslationBase.of(context).bpm,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Respiration,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.respirationRate,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Respiration,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.respirationRate,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).respirationRate,
|
|
|
|
|
imagePath: "${assetBasePath}respiration_rate.png",
|
|
|
|
|
lastVal: mode.respirationBeatPerMinute,
|
|
|
|
|
unit:
|
|
|
|
|
TranslationBase.of(context).respirationSigns,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).respirationRate,
|
|
|
|
|
imagePath: "${assetBasePath}respiration_rate.png",
|
|
|
|
|
lastVal: mode.respirationBeatPerMinute,
|
|
|
|
|
unit:
|
|
|
|
|
TranslationBase.of(context).respirationSigns,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.BloodPressure,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.bloodPressure,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.BloodPressure,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.bloodPressure,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).bloodPressure,
|
|
|
|
|
imagePath: "${assetBasePath}blood_pressure.png",
|
|
|
|
|
lastVal: mode.bloodPressure,
|
|
|
|
|
unit: TranslationBase.of(context).sysDias,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).bloodPressure,
|
|
|
|
|
imagePath: "${assetBasePath}blood_pressure.png",
|
|
|
|
|
lastVal: mode.bloodPressure,
|
|
|
|
|
unit: TranslationBase.of(context).sysDias,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
|