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
b4044803
Commit
b4044803
authored
Aug 22, 2021
by
Piyumi Dayarathna
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Responsiveness in STracker
parent
7aaf5cbc
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
567 additions
and
149 deletions
+567
-149
lib/STracker/MaskWearing/maskWearingResultPage.dart
lib/STracker/MaskWearing/maskWearingResultPage.dart
+3
-3
lib/STracker/PublicPlaces/publicPlacesQuizPage.dart
lib/STracker/PublicPlaces/publicPlacesQuizPage.dart
+15
-12
lib/STracker/PublicPlaces/publicPlacesQuizStartPage.dart
lib/STracker/PublicPlaces/publicPlacesQuizStartPage.dart
+3
-3
lib/STracker/PublicPlaces/publicPlacesResultPage.dart
lib/STracker/PublicPlaces/publicPlacesResultPage.dart
+3
-3
lib/STracker/SocialDistance/socialDistanceQuizPage.dart
lib/STracker/SocialDistance/socialDistanceQuizPage.dart
+13
-10
lib/STracker/SocialDistance/socialDistanceQuizStartPage.dart
lib/STracker/SocialDistance/socialDistanceQuizStartPage.dart
+2
-2
lib/STracker/SocialDistance/socialDistanceResultPage.dart
lib/STracker/SocialDistance/socialDistanceResultPage.dart
+3
-3
lib/STracker/Symptoms/symptomsQuizPage.dart
lib/STracker/Symptoms/symptomsQuizPage.dart
+13
-10
lib/STracker/Symptoms/symptomsQuizStartPage.dart
lib/STracker/Symptoms/symptomsQuizStartPage.dart
+2
-2
lib/STracker/Symptoms/symptomsResultPage.dart
lib/STracker/Symptoms/symptomsResultPage.dart
+3
-3
lib/STracker/fResult.dart
lib/STracker/fResult.dart
+407
-0
lib/STracker/finalOverallResultsPage.dart
lib/STracker/finalOverallResultsPage.dart
+26
-31
lib/STracker/finalResult.dart
lib/STracker/finalResult.dart
+35
-30
lib/STracker/levelsDashboard.dart
lib/STracker/levelsDashboard.dart
+25
-23
lib/STracker/strackerDashboard.dart
lib/STracker/strackerDashboard.dart
+14
-14
No files found.
lib/STracker/MaskWearing/maskWearingResultPage.dart
View file @
b4044803
...
...
@@ -73,7 +73,7 @@ class _maskWearingResultPageState extends State<maskWearingResultPage> {
child:
Text
(
"You Scored
$marks
marks"
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w900
,
),
),
...
...
@@ -99,8 +99,8 @@ class _maskWearingResultPageState extends State<maskWearingResultPage> {
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
horizontal:
20
0.0
,
vertical:
1
0.0
,
horizontal:
5
0.0
,
),
)
],
...
...
lib/STracker/PublicPlaces/publicPlacesQuizPage.dart
View file @
b4044803
...
...
@@ -5,7 +5,6 @@ import 'package:covidefender/STracker/PublicPlaces/publicPlacesResultPage.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
class
getjsonPublicPlaces
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
...
...
@@ -37,7 +36,8 @@ class quizpagePublicPlaces extends StatefulWidget {
quizpagePublicPlaces
({
Key
key
,
@required
this
.
mydata
})
:
super
(
key:
key
);
@override
_quizpagePublicPlacesState
createState
()
=>
_quizpagePublicPlacesState
(
mydata
);
_quizpagePublicPlacesState
createState
()
=>
_quizpagePublicPlacesState
(
mydata
);
}
class
_quizpagePublicPlacesState
extends
State
<
quizpagePublicPlaces
>
{
...
...
@@ -145,7 +145,7 @@ class _quizpagePublicPlacesState extends State<quizpagePublicPlaces> {
Widget
choicebutton
(
String
k
)
{
return
Padding
(
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
vertical:
1
0.0
,
horizontal:
20.0
,
),
child:
MaterialButton
(
...
...
@@ -154,15 +154,15 @@ class _quizpagePublicPlacesState extends State<quizpagePublicPlaces> {
mydata
[
1
][
i
.
toString
()][
k
],
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
20
.0
,
fontSize:
15
.0
,
),
maxLines:
1
,
),
color:
btncolor
[
k
],
splashColor:
Colors
.
indigo
[
700
],
highlightColor:
Colors
.
indigo
[
700
],
minWidth:
5
00.0
,
height:
7
0.0
,
minWidth:
3
00.0
,
height:
4
0.0
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20.0
)),
),
...
...
@@ -202,14 +202,14 @@ class _quizpagePublicPlacesState extends State<quizpagePublicPlaces> {
child:
Material
(
elevation:
20.0
,
child:
Container
(
width:
4
00.0
,
width:
3
00.0
,
height:
50.0
,
child:
Column
(
children:
<
Widget
>[
Material
(
child:
Container
(
width:
4
00.0
,
height:
375
.0
,
width:
2
00.0
,
height:
200
.0
,
child:
ClipRRect
(
child:
Image
(
image:
AssetImage
(
...
...
@@ -222,15 +222,18 @@ class _quizpagePublicPlacesState extends State<quizpagePublicPlaces> {
)),
),
),
SizedBox
(
height:
10
,
),
Expanded
(
flex:
1
,
child:
Container
(
padding:
EdgeInsets
.
all
(
15
.0
),
padding:
EdgeInsets
.
all
(
0
.0
),
alignment:
Alignment
.
bottomLeft
,
child:
Text
(
mydata
[
0
][
i
.
toString
()],
style:
TextStyle
(
fontSize:
30
.0
,
fontSize:
15
.0
,
fontWeight:
FontWeight
.
w700
,
),
),
...
...
@@ -261,7 +264,7 @@ class _quizpagePublicPlacesState extends State<quizpagePublicPlaces> {
child:
Text
(
showtimer
,
style:
TextStyle
(
fontSize:
3
5
.0
,
fontSize:
3
0
.0
,
fontWeight:
FontWeight
.
w700
,
),
),
...
...
lib/STracker/PublicPlaces/publicPlacesQuizStartPage.dart
View file @
b4044803
...
...
@@ -80,7 +80,7 @@ class _publicPlacesQuizStartPageState extends State<publicPlacesQuizStartPage> {
body:
Column
(
children:
<
Widget
>[
Expanded
(
flex:
1
,
flex:
2
,
child:
ButtonTheme
(
minWidth:
800.0
,
height:
100.0
,
...
...
@@ -144,8 +144,8 @@ class _publicPlacesQuizStartPageState extends State<publicPlacesQuizStartPage> {
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
horizontal:
20
0.0
,
vertical:
1
0.0
,
horizontal:
5
0.0
,
),
)
],
...
...
lib/STracker/PublicPlaces/publicPlacesResultPage.dart
View file @
b4044803
...
...
@@ -73,7 +73,7 @@ class _publicPlacesResultPageState extends State<publicPlacesResultPage> {
child:
Text
(
"You Scored
$marks
marks"
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w900
,
),
),
...
...
@@ -99,8 +99,8 @@ class _publicPlacesResultPageState extends State<publicPlacesResultPage> {
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
horizontal:
20
0.0
,
vertical:
1
0.0
,
horizontal:
5
0.0
,
),
)
],
...
...
lib/STracker/SocialDistance/socialDistanceQuizPage.dart
View file @
b4044803
...
...
@@ -145,7 +145,7 @@ class _quizpageSocialDistanceState extends State<quizpageSocialDistance> {
Widget
choicebutton
(
String
k
)
{
return
Padding
(
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
vertical:
1
0.0
,
horizontal:
20.0
,
),
child:
MaterialButton
(
...
...
@@ -154,15 +154,15 @@ class _quizpageSocialDistanceState extends State<quizpageSocialDistance> {
mydata
[
1
][
i
.
toString
()][
k
],
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
20
.0
,
fontSize:
15
.0
,
),
maxLines:
1
,
),
color:
btncolor
[
k
],
splashColor:
Colors
.
indigo
[
700
],
highlightColor:
Colors
.
indigo
[
700
],
minWidth:
5
00.0
,
height:
7
0.0
,
minWidth:
3
00.0
,
height:
4
0.0
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20.0
)),
),
...
...
@@ -202,14 +202,14 @@ class _quizpageSocialDistanceState extends State<quizpageSocialDistance> {
child:
Material
(
elevation:
20.0
,
child:
Container
(
width:
4
00.0
,
width:
3
00.0
,
height:
50.0
,
child:
Column
(
children:
<
Widget
>[
Material
(
child:
Container
(
width:
4
00.0
,
height:
375
.0
,
width:
2
00.0
,
height:
200
.0
,
child:
ClipRRect
(
child:
Image
(
image:
AssetImage
(
...
...
@@ -222,15 +222,18 @@ class _quizpageSocialDistanceState extends State<quizpageSocialDistance> {
)),
),
),
SizedBox
(
height:
10
,
),
Expanded
(
flex:
1
,
child:
Container
(
padding:
EdgeInsets
.
all
(
15
.0
),
padding:
EdgeInsets
.
all
(
0
.0
),
alignment:
Alignment
.
bottomLeft
,
child:
Text
(
mydata
[
0
][
i
.
toString
()],
style:
TextStyle
(
fontSize:
30
.0
,
fontSize:
15
.0
,
fontWeight:
FontWeight
.
w700
,
),
),
...
...
@@ -261,7 +264,7 @@ class _quizpageSocialDistanceState extends State<quizpageSocialDistance> {
child:
Text
(
showtimer
,
style:
TextStyle
(
fontSize:
3
5
.0
,
fontSize:
3
0
.0
,
fontWeight:
FontWeight
.
w700
,
),
),
...
...
lib/STracker/SocialDistance/socialDistanceQuizStartPage.dart
View file @
b4044803
...
...
@@ -145,8 +145,8 @@ class _socialDistanceQuizStartPageState
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
horizontal:
20
0.0
,
vertical:
1
0.0
,
horizontal:
5
0.0
,
),
)
],
...
...
lib/STracker/SocialDistance/socialDistanceResultPage.dart
View file @
b4044803
...
...
@@ -73,7 +73,7 @@ class _socialDistanceResultPageState extends State<socialDistanceResultPage> {
child:
Text
(
"You Scored
$marks
marks"
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w900
,
),
),
...
...
@@ -99,8 +99,8 @@ class _socialDistanceResultPageState extends State<socialDistanceResultPage> {
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
horizontal:
20
0.0
,
vertical:
1
0.0
,
horizontal:
5
0.0
,
),
)
],
...
...
lib/STracker/Symptoms/symptomsQuizPage.dart
View file @
b4044803
...
...
@@ -144,7 +144,7 @@ class _quizpageSymptomsState extends State<quizpageSymptoms> {
Widget
choicebutton
(
String
k
)
{
return
Padding
(
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
vertical:
1
0.0
,
horizontal:
20.0
,
),
child:
MaterialButton
(
...
...
@@ -153,15 +153,15 @@ class _quizpageSymptomsState extends State<quizpageSymptoms> {
mydata
[
1
][
i
.
toString
()][
k
],
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
20
.0
,
fontSize:
15
.0
,
),
maxLines:
1
,
),
color:
btncolor
[
k
],
splashColor:
Colors
.
indigo
[
700
],
highlightColor:
Colors
.
indigo
[
700
],
minWidth:
5
00.0
,
height:
7
0.0
,
minWidth:
3
00.0
,
height:
4
0.0
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20.0
)),
),
...
...
@@ -201,14 +201,14 @@ class _quizpageSymptomsState extends State<quizpageSymptoms> {
child:
Material
(
elevation:
20.0
,
child:
Container
(
width:
4
00.0
,
width:
3
00.0
,
height:
50.0
,
child:
Column
(
children:
<
Widget
>[
Material
(
child:
Container
(
width:
4
00.0
,
height:
375
.0
,
width:
2
00.0
,
height:
200
.0
,
child:
ClipRRect
(
child:
Image
(
image:
AssetImage
(
...
...
@@ -221,15 +221,18 @@ class _quizpageSymptomsState extends State<quizpageSymptoms> {
)),
),
),
SizedBox
(
height:
10
,
),
Expanded
(
flex:
1
,
child:
Container
(
padding:
EdgeInsets
.
all
(
15
.0
),
padding:
EdgeInsets
.
all
(
0
.0
),
alignment:
Alignment
.
bottomLeft
,
child:
Text
(
mydata
[
0
][
i
.
toString
()],
style:
TextStyle
(
fontSize:
20
.0
,
fontSize:
15
.0
,
fontWeight:
FontWeight
.
w700
,
),
),
...
...
@@ -260,7 +263,7 @@ class _quizpageSymptomsState extends State<quizpageSymptoms> {
child:
Text
(
showtimer
,
style:
TextStyle
(
fontSize:
3
5
.0
,
fontSize:
3
0
.0
,
fontWeight:
FontWeight
.
w700
,
),
),
...
...
lib/STracker/Symptoms/symptomsQuizStartPage.dart
View file @
b4044803
...
...
@@ -144,8 +144,8 @@ class _symptomsQuizStartPageState extends State<symptomsQuizStartPage> {
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
horizontal:
20
0.0
,
vertical:
1
0.0
,
horizontal:
5
0.0
,
),
)
],
...
...
lib/STracker/Symptoms/symptomsResultPage.dart
View file @
b4044803
...
...
@@ -72,7 +72,7 @@ class _symptomsResultPageState extends State<symptomsResultPage> {
child:
Text
(
"You Scored
$marks
marks"
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w900
,
),
),
...
...
@@ -98,8 +98,8 @@ class _symptomsResultPageState extends State<symptomsResultPage> {
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
horizontal:
20
0.0
,
vertical:
1
0.0
,
horizontal:
5
0.0
,
),
)
],
...
...
lib/STracker/fResult.dart
0 → 100644
View file @
b4044803
This diff is collapsed.
Click to expand it.
lib/STracker/finalOverallResultsPage.dart
View file @
b4044803
...
...
@@ -13,9 +13,8 @@ class finalOverallResultPage extends StatefulWidget {
}
class
_finalOverallResultPageState
extends
State
<
finalOverallResultPage
>
{
// int ima;
int
ima
=
100
;
_finalOverallResultPageState
();
@override
...
...
@@ -27,25 +26,21 @@ class _finalOverallResultPageState extends State<finalOverallResultPage> {
void
setLevel
()
{
print
(
'marks6'
);
print
(
marks6
);
if
(
marks6
==
'Very Low'
)
{
//
ima = 100;
if
(
marks6
==
'Very Low'
)
{
ima
=
100
;
print
(
'1'
);
}
else
if
(
marks6
==
'Low'
){
// ima = 200;
print
(
'2'
);
}
else
if
(
marks6
==
'Moderate'
){
// ima = 300;
print
(
'3'
);
}
else
if
(
marks6
==
'High'
){
// ima = 400;
print
(
'4'
);
}
else
if
(
marks6
==
'Very High'
){
// ima = 500;
print
(
'5'
);
}
else
if
(
marks6
==
'Low'
)
{
ima
=
200
;
print
(
'2'
);
}
else
if
(
marks6
==
'Moderate'
)
{
ima
=
300
;
print
(
'3'
);
}
else
if
(
marks6
==
'High'
)
{
ima
=
400
;
print
(
'4'
);
}
else
if
(
marks6
==
'Very High'
)
{
ima
=
500
;
print
(
'5'
);
}
}
...
...
@@ -116,16 +111,16 @@ class _finalOverallResultPageState extends State<finalOverallResultPage> {
body:
Column
(
children:
<
Widget
>[
Expanded
(
flex:
1
,
flex:
2
,
child:
ButtonTheme
(
minWidth:
800.0
,
height:
1
00.0
,
height:
2
00.0
,
child:
RaisedButton
(
color:
Colors
.
redAccent
,
onPressed:
()
{},
child:
Text
(
"Overall Awareness Level"
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
3
0
),
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
2
0
),
),
),
)),
...
...
@@ -169,7 +164,7 @@ class _finalOverallResultPageState extends State<finalOverallResultPage> {
onPressed:
()
{},
child:
Text
(
"Your Awareness Level -
$marks6
"
,
style:
TextStyle
(
color:
Colors
.
red
,
fontSize:
3
0
),
style:
TextStyle
(
color:
Colors
.
red
,
fontSize:
2
0
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
10.0
,
...
...
@@ -188,10 +183,10 @@ class _finalOverallResultPageState extends State<finalOverallResultPage> {
color:
Colors
.
white
,
onPressed:
()
{},
child:
Image
(
image:
AssetImage
(
"lib/assets/images/100.png"
,
),
image:
AssetImage
(
"lib/assets/images/
$ima
.png"
,
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
10.0
,
horizontal:
25.0
,
...
...
@@ -217,12 +212,12 @@ class _finalOverallResultPageState extends State<finalOverallResultPage> {
child:
Text
(
"Registration"
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
),
),
padding:
EdgeInsets
.
symmetric
(
vertical:
2
0.0
,
horizontal:
20
0.0
,
vertical:
1
0.0
,
horizontal:
5
0.0
,
),
)
],
...
...
lib/STracker/finalResult.dart
View file @
b4044803
...
...
@@ -154,38 +154,43 @@ class _finalResultState extends State<finalResult> {
}
}
Future
Getdata
(
url
)
async
{
http
.
Response
Response
=
await
http
.
get
(
url
);
return
Response
.
body
;
}
Future
<
void
>
check
()
async
{
String
urls
=
'https://strackercovid.herokuapp.com/api/stracker?HandWashing='
+
handWashingLevelData
.
toString
()+
'&MaskWearing='
+
maskWearingLevelData
.
toString
()+
'&ScocialDistence='
+
socialDistanceLevelData
.
toString
()+
'&BehaveInPublicPlaces='
+
publicPlacesLevelData
.
toString
()+
'&Symptoms='
+
symptomsLevelData
.
toString
();
var
Data
=
await
Getdata
(
urls
);
var
reText
=
jsonDecode
(
Data
);
print
(
reText
);
if
(
reText
.
toString
()
==
'[0]'
)
{
print
(
"Very Low"
);
marks6
=
'Very Low'
;
}
else
if
(
reText
.
toString
()
==
'[1]'
)
{
print
(
"Low"
);
marks6
=
'Low'
;
}
else
if
(
reText
.
toString
()
==
'[2]'
)
{
print
(
"Moderate"
);
marks6
=
'Moderate'
;
}
else
if
(
reText
.
toString
()
==
'[3]'
)
{
print
(
"High"
);
marks6
=
'High'
;
Future
Getdata
(
url
)
async
{
http
.
Response
Response
=
await
http
.
get
(
url
);
return
Response
.
body
;
}
else
if
(
reText
.
toString
()
==
'[4]'
)
{
print
(
"Very High"
);
marks6
=
'Very High'
;
}
}
Future
<
void
>
check
()
async
{
String
urls
=
'https://strackercovid.herokuapp.com/api/stracker?HandWashing='
+
handWashingLevelData
.
toString
()
+
'&MaskWearing='
+
maskWearingLevelData
.
toString
()
+
'&ScocialDistence='
+
socialDistanceLevelData
.
toString
()
+
'&BehaveInPublicPlaces='
+
publicPlacesLevelData
.
toString
()
+
'&Symptoms='
+
symptomsLevelData
.
toString
();
var
Data
=
await
Getdata
(
urls
);
var
reText
=
jsonDecode
(
Data
);
print
(
reText
);
if
(
reText
.
toString
()
==
'[0]'
)
{
print
(
"Very Low"
);
marks6
=
'Very Low'
;
}
else
if
(
reText
.
toString
()
==
'[1]'
)
{
print
(
"Low"
);
marks6
=
'Low'
;
}
else
if
(
reText
.
toString
()
==
'[2]'
)
{
print
(
"Moderate"
);
marks6
=
'Moderate'
;
}
else
if
(
reText
.
toString
()
==
'[3]'
)
{
print
(
"High"
);
marks6
=
'High'
;
}
else
if
(
reText
.
toString
()
==
'[4]'
)
{
print
(
"Very High"
);
marks6
=
'Very High'
;
}
}
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
...
...
lib/STracker/levelsDashboard.dart
View file @
b4044803
...
...
@@ -2,6 +2,7 @@ import 'package:covidefender/STracker/MaskWearing/maskWearingQuizStartPage.dart'
import
'package:covidefender/STracker/PublicPlaces/publicPlacesQuizStartPage.dart'
;
import
'package:covidefender/STracker/SocialDistance/socialDistanceQuizStartPage.dart'
;
import
'package:covidefender/STracker/Symptoms/symptomsQuizStartPage.dart'
;
import
'package:covidefender/STracker/fResult.dart'
;
import
'package:covidefender/STracker/finalResult.dart'
;
import
'package:flutter/material.dart'
;
...
...
@@ -36,13 +37,13 @@ class _levelsDashboardState extends State<levelsDashboard> {
child:
Column
(
children:
<
Widget
>[
Container
(
height:
64
,
height:
45
,
margin:
EdgeInsets
.
only
(
bottom:
20
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
CircleAvatar
(
radius:
32
,
radius:
20
,
backgroundColor:
Colors
.
transparent
,
backgroundImage:
AssetImage
(
'lib/assets/images/stracker.PNG'
),
...
...
@@ -56,13 +57,14 @@ class _levelsDashboardState extends State<levelsDashboard> {
children:
<
Widget
>[
Text
(
'STracker'
,
style:
TextStyle
(
fontSize:
3
5
.0
,
color:
Colors
.
white
)),
fontSize:
3
0
.0
,
color:
Colors
.
white
)),
],
)
],
),
),
Expanded
(
flex:
10
,
child:
GridView
.
count
(
mainAxisSpacing:
10
,
crossAxisSpacing:
10
,
...
...
@@ -87,13 +89,13 @@ class _levelsDashboardState extends State<levelsDashboard> {
child:
Image
.
asset
(
'lib/assets/images/handWashing.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'Hand Washing'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
,
)),
],
...
...
@@ -117,13 +119,13 @@ class _levelsDashboardState extends State<levelsDashboard> {
child:
Image
.
asset
(
'lib/assets/images/maskWearing.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'Mask Wearing'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
,
))
],
...
...
@@ -147,13 +149,13 @@ class _levelsDashboardState extends State<levelsDashboard> {
child:
Image
.
asset
(
'lib/assets/images/socialDistance.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'
Socila
Distance'
,
Text
(
'Distance'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
,
))
],
...
...
@@ -177,13 +179,13 @@ class _levelsDashboardState extends State<levelsDashboard> {
child:
Image
.
asset
(
'lib/assets/images/publicPlaces.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'Public Places'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
,
))
],
...
...
@@ -207,13 +209,13 @@ class _levelsDashboardState extends State<levelsDashboard> {
child:
Image
.
asset
(
'lib/assets/images/symptoms.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'Symptoms'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
,
))
],
...
...
@@ -230,19 +232,19 @@ class _levelsDashboardState extends State<levelsDashboard> {
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
f
inal
Result
()),
builder:
(
context
)
=>
fResult
()),
);
},
child:
Image
.
asset
(
'lib/assets/images/result.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'Final Result'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
))
],
)),
...
...
lib/STracker/strackerDashboard.dart
View file @
b4044803
...
...
@@ -63,7 +63,7 @@ class _strackerDasboardState extends State<strackerDasboard> {
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
CircleAvatar
(
radius:
10
0
,
radius:
5
0
,
backgroundColor:
Colors
.
transparent
,
backgroundImage:
AssetImage
(
'lib/assets/images/stracker.PNG'
),
...
...
@@ -98,13 +98,13 @@ class _strackerDasboardState extends State<strackerDasboard> {
child:
Image
.
asset
(
'lib/assets/images/play.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'Play'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
)),
],
)),
...
...
@@ -125,13 +125,13 @@ class _strackerDasboardState extends State<strackerDasboard> {
child:
Image
.
asset
(
'lib/assets/images/instructions.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'Instructions'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
))
],
)),
...
...
@@ -152,13 +152,13 @@ class _strackerDasboardState extends State<strackerDasboard> {
child:
Image
.
asset
(
'lib/assets/images/score.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'Score Board'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
))
],
)),
...
...
@@ -179,13 +179,13 @@ class _strackerDasboardState extends State<strackerDasboard> {
child:
Image
.
asset
(
'lib/assets/images/awrenessLevel.png'
,
fit:
BoxFit
.
contain
,
width:
2
00
,
height:
2
00
,
width:
1
00
,
height:
1
00
,
),
),
Text
(
'Aw
reness Level
'
,
Text
(
'Aw
areness
'
,
style:
TextStyle
(
fontSize:
3
0.0
,
fontSize:
2
0.0
,
fontWeight:
FontWeight
.
w700
))
],
)),
...
...
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