Commit 09eca686 authored by Nilupul Jayasekara's avatar Nilupul Jayasekara

add images to health risk

parent 189e2af5
...@@ -20,8 +20,8 @@ class _EyeRiskScreenState extends State<EyeRiskScreen> { ...@@ -20,8 +20,8 @@ class _EyeRiskScreenState extends State<EyeRiskScreen> {
bool isPositive = false; bool isPositive = false;
double riskScore = 0; double riskScore = 0;
final String positiveMsg ="Based on your score, you are likely to have diabetes. Seeing your doctor is the critical next step to determining if you have diabetes."; final String positiveMsg ="Based on your score, you are likely to have an eye risk. Seeing your doctor is the critical next step to determining if you have a eye risk.";
final String negativeMsg = "Based on your risk score, your diabetes risk is low, continue having a healty life style."; final String negativeMsg = "Based on your risk score, your eye risk is low.";
void setResult() async{ void setResult() async{
setState(() { setState(() {
...@@ -106,7 +106,7 @@ class _EyeRiskScreenState extends State<EyeRiskScreen> { ...@@ -106,7 +106,7 @@ class _EyeRiskScreenState extends State<EyeRiskScreen> {
child: Column( child: Column(
children: [ children: [
Image.asset( Image.asset(
"assets/images/diabetsresult.png", "assets/images/eye.jpeg",
width: 200, width: 200,
height: 180, height: 180,
), ),
......
...@@ -21,9 +21,8 @@ class _HeartRiskScreenState extends State<HeartRiskScreen> { ...@@ -21,9 +21,8 @@ class _HeartRiskScreenState extends State<HeartRiskScreen> {
bool isPositive = false; bool isPositive = false;
double riskScore = 0; double riskScore = 0;
final String positiveMsg ="Based on your score, you are likely to have diabetes. Seeing your doctor is the critical next step to determining if you have diabetes."; final String positiveMsg ="Based on your score, you are likely to have heart risk. Seeing your doctor is the critical next step to determining if you have heart risk.";
final negativeMsg = "Based on your risk score, your diabetes risk is low, continue having a healty life style."; final negativeMsg = "Based on your risk score, your heart risk is low.";
void setResult()async{ void setResult()async{
setState(() { setState(() {
...@@ -106,7 +105,7 @@ class _HeartRiskScreenState extends State<HeartRiskScreen> { ...@@ -106,7 +105,7 @@ class _HeartRiskScreenState extends State<HeartRiskScreen> {
child: Column( child: Column(
children: [ children: [
Image.asset( Image.asset(
"assets/images/diabetsresult.png", "assets/images/heart.jpeg",
width: 200, width: 200,
height: 180, height: 180,
), ),
......
...@@ -20,8 +20,8 @@ class _KidneyRiskScreenState extends State<KidneyRiskScreen> { ...@@ -20,8 +20,8 @@ class _KidneyRiskScreenState extends State<KidneyRiskScreen> {
bool isPositive = false; bool isPositive = false;
double riskScore = 0; double riskScore = 0;
final String positiveMsg ="Based on your score, you are likely to have diabetes. Seeing your doctor is the critical next step to determining if you have diabetes."; final String positiveMsg ="Based on your score, you are likely to have kidney risk. Seeing your doctor is the critical next step to determining if you have kidney risk.";
final String negativeMsg = "Based on your risk score, your diabetes risk is low, continue having a healty life style."; final String negativeMsg = "Based on your risk score, your kidney risk is low.";
void setResult() async{ void setResult() async{
setState(() { setState(() {
...@@ -106,7 +106,7 @@ class _KidneyRiskScreenState extends State<KidneyRiskScreen> { ...@@ -106,7 +106,7 @@ class _KidneyRiskScreenState extends State<KidneyRiskScreen> {
child: Column( child: Column(
children: [ children: [
Image.asset( Image.asset(
"assets/images/diabetsresult.png", "assets/images/kidney.jpeg",
width: 200, width: 200,
height: 180, height: 180,
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment