Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-035-CoviDefender
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-035
2021-035-CoviDefender
Commits
85d1704e
Commit
85d1704e
authored
Jul 26, 2021
by
GayaniPKarunaratne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display final risk in flutter app2
parent
d3200455
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/EAnalyzer/SearchEvent.dart
lib/EAnalyzer/SearchEvent.dart
+4
-4
No files found.
lib/EAnalyzer/SearchEvent.dart
View file @
85d1704e
...
...
@@ -238,23 +238,23 @@ Future<void> check() async{
String
urls
=
'https://eanalyzer.herokuapp.com/api/eanalyzer?NoInfected='
+
noOfInfected
.
toString
()+
'&NearToDistrict='
+
nearToDistrict
.
toString
()+
'&NoOfPeople='
+
noOfPeople
.
toString
();
var
Data
=
await
Getdata
(
urls
);
var
reText
=
jsonDecode
(
Data
);
print
(
reText
);
//
print(reText);
// var ex = [2];
//-----------------------------------------------------OutPut------------------------------------------------------------------------------
if
(
reText
.
toString
()
==
'[0]'
)
{
print
(
"This is a Low Risk area"
);
//
print("This is a Low Risk area");
reText
=
"Low Risk"
;
finalRisk
=
reText
;
ima
=
101
;
}
else
if
(
reText
.
toString
()
==
'[1]'
)
{
print
(
"This is a Moderate Risk area"
);
//
print("This is a Moderate Risk area");
reText
=
"Moderate Risk"
;
finalRisk
=
reText
;
ima
=
102
;
}
else
if
(
reText
.
toString
()
==
'[2]'
)
{
print
(
"This is a High Risk area"
);
//
print("This is a High Risk area");
reText
=
"High Risk"
;
finalRisk
=
reText
;
ima
=
103
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment