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
ce87967c
Commit
ce87967c
authored
Jul 23, 2021
by
PiyumiD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change some codes in searchevent.dart class
parent
3a6722e7
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
45 additions
and
36 deletions
+45
-36
lib/EAnalyzer/AddLocation.dart
lib/EAnalyzer/AddLocation.dart
+3
-3
lib/EAnalyzer/EAnalyzerDash.dart
lib/EAnalyzer/EAnalyzerDash.dart
+1
-0
lib/EAnalyzer/SearchEvent.dart
lib/EAnalyzer/SearchEvent.dart
+35
-30
lib/assets/images/cdlogo.png
lib/assets/images/cdlogo.png
+0
-0
lib/assets/images/cdlogo1.png
lib/assets/images/cdlogo1.png
+0
-0
lib/assets/images/cdlogo2.png
lib/assets/images/cdlogo2.png
+0
-0
lib/home_screen.dart
lib/home_screen.dart
+3
-3
pubspec.yaml
pubspec.yaml
+3
-0
No files found.
lib/EAnalyzer/AddLocation.dart
View file @
ce87967c
...
@@ -320,7 +320,7 @@ Widget _buildTime(){
...
@@ -320,7 +320,7 @@ Widget _buildTime(){
SizedBox
(
height:
10
),
SizedBox
(
height:
10
),
_buildTime
(),
_buildTime
(),
//---------------------------------------------Submit-----------------------------------------------------
SizedBox
(
height:
50
),
SizedBox
(
height:
50
),
RaisedButton
(
RaisedButton
(
color:
Colors
.
green
,
color:
Colors
.
green
,
...
@@ -351,7 +351,7 @@ Widget _buildTime(){
...
@@ -351,7 +351,7 @@ Widget _buildTime(){
// } ,
// } ,
// ),
// ),
//---------------------------------------------Update-----------------------------------------------------
RaisedButton
(
RaisedButton
(
color:
Colors
.
yellowAccent
[
700
],
color:
Colors
.
yellowAccent
[
700
],
child:
Text
(
child:
Text
(
...
@@ -364,7 +364,7 @@ Widget _buildTime(){
...
@@ -364,7 +364,7 @@ Widget _buildTime(){
}
,
}
,
),
),
//---------------------------------------------Delete-----------------------------------------------------
RaisedButton
(
RaisedButton
(
color:
Colors
.
red
,
color:
Colors
.
red
,
child:
Text
(
child:
Text
(
...
...
lib/EAnalyzer/EAnalyzerDash.dart
View file @
ce87967c
...
@@ -58,6 +58,7 @@ class EAnalyzerDash extends StatelessWidget {
...
@@ -58,6 +58,7 @@ class EAnalyzerDash extends StatelessWidget {
primary:
false
,
primary:
false
,
crossAxisCount:
2
,
crossAxisCount:
2
,
children:
<
Widget
>[
children:
<
Widget
>[
//--------------------------------------Cards--------------------------------------------------------------------------------------
Card
(
Card
(
shape:
RoundedRectangleBorder
(
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
8
)),
borderRadius:
BorderRadius
.
circular
(
8
)),
...
...
lib/EAnalyzer/SearchEvent.dart
View file @
ce87967c
...
@@ -11,9 +11,10 @@ class _SearchEventState extends State<SearchEvent> {
...
@@ -11,9 +11,10 @@ class _SearchEventState extends State<SearchEvent> {
String
hotelName
;
String
hotelName
;
String
district
;
String
district
;
int
noOfInfected
;
int
nearToDistrict
;
int
nearToDistrict
;
int
noOfPeople
;
int
noOfPeople
;
String
date
;
// int ima;
// int ima;
// void riskLevel(){
// void riskLevel(){
...
@@ -29,6 +30,10 @@ class _SearchEventState extends State<SearchEvent> {
...
@@ -29,6 +30,10 @@ class _SearchEventState extends State<SearchEvent> {
this
.
district
=
district
;
this
.
district
=
district
;
}
}
getDate
(
noOfInfected
){
this
.
noOfInfected
=
noOfInfected
;
}
getNearDistrict
(
nearToDistrict
){
getNearDistrict
(
nearToDistrict
){
this
.
nearToDistrict
=
nearToDistrict
;
this
.
nearToDistrict
=
nearToDistrict
;
}
}
...
@@ -37,9 +42,6 @@ class _SearchEventState extends State<SearchEvent> {
...
@@ -37,9 +42,6 @@ class _SearchEventState extends State<SearchEvent> {
this
.
noOfPeople
=
noOfPeople
;
this
.
noOfPeople
=
noOfPeople
;
}
}
getDate
(
date
){
this
.
date
=
date
;
}
final
GlobalKey
<
FormState
>
_formKey
=
GlobalKey
<
FormState
>();
final
GlobalKey
<
FormState
>
_formKey
=
GlobalKey
<
FormState
>();
...
@@ -119,8 +121,9 @@ Widget _buildDistrict(){
...
@@ -119,8 +121,9 @@ Widget _buildDistrict(){
);
);
}
}
//---------------------------------------------Near To District-----------------------------------------------------
Widget
_buildNearToDistrict
(
){
//---------------------------------------------No Of Infected-----------------------------------------------------
Widget
_buildNoOfInfected
(
){
return
TextFormField
(
return
TextFormField
(
decoration:
InputDecoration
(
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
enabledBorder:
OutlineInputBorder
(
...
@@ -131,27 +134,27 @@ Widget _buildNearToDistrict(){
...
@@ -131,27 +134,27 @@ Widget _buildNearToDistrict(){
borderSide:
BorderSide
(
color:
Colors
.
green
),
borderSide:
BorderSide
(
color:
Colors
.
green
),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
20
))
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
20
))
),
),
prefixIcon:
Icon
(
Icons
.
location_on
),
prefixIcon:
Icon
(
Icons
.
people_outlined
),
hintText:
"Ex :
0 or 1
"
,
hintText:
"Ex :
250
"
,
labelText:
'N
ear to District or not
'
labelText:
'N
o Of Infected People
'
),
),
// ignore: missing_return
// ignore: missing_return
validator:
(
String
value
){
validator:
(
String
value
){
if
(
value
.
isEmpty
)
{
if
(
value
.
isEmpty
)
{
return
'*
This
is Required'
;
return
'*
Date
is Required'
;
}
}
},
},
// onSaved: (String value){
// onSaved: (String value){
// _fName = value;
// _fName = value;
// },
// },
onChanged:
(
String
n
earToDistrict
){
onChanged:
(
String
n
oOfInfected
){
getNearDistrict
(
n
earToDistrict
);
getNearDistrict
(
n
oOfInfected
);
},
},
);
);
}
}
//---------------------------------------------N
o of people
-----------------------------------------------------
//---------------------------------------------N
ear To District
-----------------------------------------------------
Widget
_buildN
oOfPeople
(
){
Widget
_buildN
earToDistrict
(
){
return
TextFormField
(
return
TextFormField
(
decoration:
InputDecoration
(
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
enabledBorder:
OutlineInputBorder
(
...
@@ -162,9 +165,9 @@ Widget _buildNoOfPeople(){
...
@@ -162,9 +165,9 @@ Widget _buildNoOfPeople(){
borderSide:
BorderSide
(
color:
Colors
.
green
),
borderSide:
BorderSide
(
color:
Colors
.
green
),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
20
))
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
20
))
),
),
prefixIcon:
Icon
(
Icons
.
people_outline
),
prefixIcon:
Icon
(
Icons
.
location_on
),
hintText:
"Ex :
250
"
,
hintText:
"Ex :
0 or 1
"
,
labelText:
'N
o Of People
'
labelText:
'N
ear to District or not
'
),
),
// ignore: missing_return
// ignore: missing_return
validator:
(
String
value
){
validator:
(
String
value
){
...
@@ -175,14 +178,14 @@ Widget _buildNoOfPeople(){
...
@@ -175,14 +178,14 @@ Widget _buildNoOfPeople(){
// onSaved: (String value){
// onSaved: (String value){
// _fName = value;
// _fName = value;
// },
// },
onChanged:
(
String
n
oOfPeople
){
onChanged:
(
String
n
earToDistrict
){
get
People
(
noOfPeople
);
get
NearDistrict
(
nearToDistrict
);
},
},
);
);
}
}
//---------------------------------------------
Dat
e-----------------------------------------------------
//---------------------------------------------
No of peopl
e-----------------------------------------------------
Widget
_build
Dat
e
(
){
Widget
_build
NoOfPeopl
e
(
){
return
TextFormField
(
return
TextFormField
(
decoration:
InputDecoration
(
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
enabledBorder:
OutlineInputBorder
(
...
@@ -193,25 +196,26 @@ Widget _buildDate(){
...
@@ -193,25 +196,26 @@ Widget _buildDate(){
borderSide:
BorderSide
(
color:
Colors
.
green
),
borderSide:
BorderSide
(
color:
Colors
.
green
),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
20
))
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
20
))
),
),
prefixIcon:
Icon
(
Icons
.
calendar_today
),
prefixIcon:
Icon
(
Icons
.
people_outline
),
hintText:
"Ex : 2
021/04/03
"
,
hintText:
"Ex : 2
50
"
,
labelText:
'
Dat
e'
labelText:
'
No Of Peopl
e'
),
),
// ignore: missing_return
// ignore: missing_return
validator:
(
String
value
){
validator:
(
String
value
){
if
(
value
.
isEmpty
)
{
if
(
value
.
isEmpty
)
{
return
'*
Date
is Required'
;
return
'*
This
is Required'
;
}
}
},
},
// onSaved: (String value){
// onSaved: (String value){
// _fName = value;
// _fName = value;
// },
// },
onChanged:
(
String
dat
e
){
onChanged:
(
String
noOfPeopl
e
){
get
NearDistrict
(
dat
e
);
get
People
(
noOfPeopl
e
);
},
},
);
);
}
}
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
return
Scaffold
(
...
@@ -233,18 +237,19 @@ Widget _buildDate(){
...
@@ -233,18 +237,19 @@ Widget _buildDate(){
SizedBox
(
height:
10
),
SizedBox
(
height:
10
),
_buildDistrict
(),
_buildDistrict
(),
SizedBox
(
height:
10
),
SizedBox
(
height:
10
),
_buildNoOfInfected
(),
SizedBox
(
height:
10
),
_buildNearToDistrict
(),
_buildNearToDistrict
(),
SizedBox
(
height:
10
),
SizedBox
(
height:
10
),
_buildNoOfPeople
(),
_buildNoOfPeople
(),
// SizedBox(height: 10),
// _buildDate(),
SizedBox
(
height:
50
),
SizedBox
(
height:
50
),
//Image(image: AssetImage('lib/assets/images/200.gif')),
//Image(image: AssetImage('lib/assets/images/200.gif')),
Image
.
asset
(
'lib/assets/images/200.gif'
,
fit:
BoxFit
.
contain
,
width:
150
,
height:
150
,),
Image
.
asset
(
'lib/assets/images/200.gif'
,
fit:
BoxFit
.
contain
,
width:
150
,
height:
150
,),
Center
(
child:
Center
(
child:
Text
(
'This is a
Risk Location
'
,
style:
TextStyle
(
fontSize:
25
,
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
red
[
900
]),)),
Text
(
'This is a
risk area
'
,
style:
TextStyle
(
fontSize:
25
,
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
red
[
900
]),)),
SizedBox
(
height:
10
),
SizedBox
(
height:
10
),
RaisedButton
(
RaisedButton
(
shape:
RoundedRectangleBorder
(
shape:
RoundedRectangleBorder
(
...
...
lib/assets/images/cdlogo.png
0 → 100644
View file @
ce87967c
9.71 KB
lib/assets/images/cdlogo1.png
0 → 100644
View file @
ce87967c
8.69 KB
lib/assets/images/cdlogo2.png
0 → 100644
View file @
ce87967c
8.71 KB
lib/home_screen.dart
View file @
ce87967c
...
@@ -43,9 +43,9 @@ class _HomeScreenState extends State<HomeScreen> {
...
@@ -43,9 +43,9 @@ class _HomeScreenState extends State<HomeScreen> {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
children:
<
Widget
>[
CircleAvatar
(
CircleAvatar
(
radius:
32
,
radius:
55
,
background
Image:
NetworkImage
(
background
Color:
Colors
.
transparent
,
'https://upload.wikimedia.org/wikipedia/commons/a/a0/Pierre-Person.jp
g'
),
backgroundImage:
AssetImage
(
'lib/assets/images/cdlogo2.pn
g'
),
),
),
SizedBox
(
SizedBox
(
width:
16
,
width:
16
,
...
...
pubspec.yaml
View file @
ce87967c
...
@@ -87,6 +87,9 @@ flutter:
...
@@ -87,6 +87,9 @@ flutter:
-
lib/assets/images/list80.png
-
lib/assets/images/list80.png
-
lib/assets/images/search80.png
-
lib/assets/images/search80.png
-
lib/assets/images/200.gif
-
lib/assets/images/200.gif
-
lib/assets/images/cdlogo.png
-
lib/assets/images/cdlogo1.png
-
lib/assets/images/cdlogo2.png
-
lib/assets/
-
lib/assets/
...
...
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