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(){
SizedBox
(
height:
10
),
_buildTime
(),
//---------------------------------------------Submit-----------------------------------------------------
SizedBox
(
height:
50
),
RaisedButton
(
color:
Colors
.
green
,
...
...
@@ -351,7 +351,7 @@ Widget _buildTime(){
// } ,
// ),
//---------------------------------------------Update-----------------------------------------------------
RaisedButton
(
color:
Colors
.
yellowAccent
[
700
],
child:
Text
(
...
...
@@ -364,7 +364,7 @@ Widget _buildTime(){
}
,
),
//---------------------------------------------Delete-----------------------------------------------------
RaisedButton
(
color:
Colors
.
red
,
child:
Text
(
...
...
lib/EAnalyzer/EAnalyzerDash.dart
View file @
ce87967c
...
...
@@ -58,6 +58,7 @@ class EAnalyzerDash extends StatelessWidget {
primary:
false
,
crossAxisCount:
2
,
children:
<
Widget
>[
//--------------------------------------Cards--------------------------------------------------------------------------------------
Card
(
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
8
)),
...
...
lib/EAnalyzer/SearchEvent.dart
View file @
ce87967c
...
...
@@ -11,9 +11,10 @@ class _SearchEventState extends State<SearchEvent> {
String
hotelName
;
String
district
;
int
noOfInfected
;
int
nearToDistrict
;
int
noOfPeople
;
String
date
;
// int ima;
// void riskLevel(){
...
...
@@ -29,6 +30,10 @@ class _SearchEventState extends State<SearchEvent> {
this
.
district
=
district
;
}
getDate
(
noOfInfected
){
this
.
noOfInfected
=
noOfInfected
;
}
getNearDistrict
(
nearToDistrict
){
this
.
nearToDistrict
=
nearToDistrict
;
}
...
...
@@ -37,9 +42,6 @@ class _SearchEventState extends State<SearchEvent> {
this
.
noOfPeople
=
noOfPeople
;
}
getDate
(
date
){
this
.
date
=
date
;
}
final
GlobalKey
<
FormState
>
_formKey
=
GlobalKey
<
FormState
>();
...
...
@@ -119,8 +121,9 @@ Widget _buildDistrict(){
);
}
//---------------------------------------------Near To District-----------------------------------------------------
Widget
_buildNearToDistrict
(
){
//---------------------------------------------No Of Infected-----------------------------------------------------
Widget
_buildNoOfInfected
(
){
return
TextFormField
(
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
...
...
@@ -131,27 +134,27 @@ Widget _buildNearToDistrict(){
borderSide:
BorderSide
(
color:
Colors
.
green
),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
20
))
),
prefixIcon:
Icon
(
Icons
.
location_on
),
hintText:
"Ex :
0 or 1
"
,
labelText:
'N
ear to District or not
'
prefixIcon:
Icon
(
Icons
.
people_outlined
),
hintText:
"Ex :
250
"
,
labelText:
'N
o Of Infected People
'
),
// ignore: missing_return
validator:
(
String
value
){
if
(
value
.
isEmpty
)
{
return
'*
This
is Required'
;
return
'*
Date
is Required'
;
}
},
// onSaved: (String value){
// _fName = value;
// },
onChanged:
(
String
n
earToDistrict
){
getNearDistrict
(
n
earToDistrict
);
onChanged:
(
String
n
oOfInfected
){
getNearDistrict
(
n
oOfInfected
);
},
);
}
//---------------------------------------------N
o of people
-----------------------------------------------------
Widget
_buildN
oOfPeople
(
){
//---------------------------------------------N
ear To District
-----------------------------------------------------
Widget
_buildN
earToDistrict
(
){
return
TextFormField
(
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
...
...
@@ -162,9 +165,9 @@ Widget _buildNoOfPeople(){
borderSide:
BorderSide
(
color:
Colors
.
green
),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
20
))
),
prefixIcon:
Icon
(
Icons
.
people_outline
),
hintText:
"Ex :
250
"
,
labelText:
'N
o Of People
'
prefixIcon:
Icon
(
Icons
.
location_on
),
hintText:
"Ex :
0 or 1
"
,
labelText:
'N
ear to District or not
'
),
// ignore: missing_return
validator:
(
String
value
){
...
...
@@ -175,14 +178,14 @@ Widget _buildNoOfPeople(){
// onSaved: (String value){
// _fName = value;
// },
onChanged:
(
String
n
oOfPeople
){
get
People
(
noOfPeople
);
onChanged:
(
String
n
earToDistrict
){
get
NearDistrict
(
nearToDistrict
);
},
);
}
//---------------------------------------------
Dat
e-----------------------------------------------------
Widget
_build
Dat
e
(
){
//---------------------------------------------
No of peopl
e-----------------------------------------------------
Widget
_build
NoOfPeopl
e
(
){
return
TextFormField
(
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
...
...
@@ -193,25 +196,26 @@ Widget _buildDate(){
borderSide:
BorderSide
(
color:
Colors
.
green
),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
20
))
),
prefixIcon:
Icon
(
Icons
.
calendar_today
),
hintText:
"Ex : 2
021/04/03
"
,
labelText:
'
Dat
e'
prefixIcon:
Icon
(
Icons
.
people_outline
),
hintText:
"Ex : 2
50
"
,
labelText:
'
No Of Peopl
e'
),
// ignore: missing_return
validator:
(
String
value
){
if
(
value
.
isEmpty
)
{
return
'*
Date
is Required'
;
return
'*
This
is Required'
;
}
},
// onSaved: (String value){
// _fName = value;
// },
onChanged:
(
String
dat
e
){
get
NearDistrict
(
dat
e
);
onChanged:
(
String
noOfPeopl
e
){
get
People
(
noOfPeopl
e
);
},
);
}
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
...
...
@@ -233,18 +237,19 @@ Widget _buildDate(){
SizedBox
(
height:
10
),
_buildDistrict
(),
SizedBox
(
height:
10
),
_buildNoOfInfected
(),
SizedBox
(
height:
10
),
_buildNearToDistrict
(),
SizedBox
(
height:
10
),
_buildNoOfPeople
(),
// SizedBox(height: 10),
// _buildDate(),
SizedBox
(
height:
50
),
//Image(image: AssetImage('lib/assets/images/200.gif')),
Image
.
asset
(
'lib/assets/images/200.gif'
,
fit:
BoxFit
.
contain
,
width:
150
,
height:
150
,),
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
),
RaisedButton
(
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> {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
CircleAvatar
(
radius:
32
,
background
Image:
NetworkImage
(
'https://upload.wikimedia.org/wikipedia/commons/a/a0/Pierre-Person.jp
g'
),
radius:
55
,
background
Color:
Colors
.
transparent
,
backgroundImage:
AssetImage
(
'lib/assets/images/cdlogo2.pn
g'
),
),
SizedBox
(
width:
16
,
...
...
pubspec.yaml
View file @
ce87967c
...
...
@@ -87,6 +87,9 @@ flutter:
-
lib/assets/images/list80.png
-
lib/assets/images/search80.png
-
lib/assets/images/200.gif
-
lib/assets/images/cdlogo.png
-
lib/assets/images/cdlogo1.png
-
lib/assets/images/cdlogo2.png
-
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