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
ca609fac
Commit
ca609fac
authored
Jul 02, 2021
by
indika N kumara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'I_GUIDER_PHASE_02_NK' into 'master'"
This reverts merge request
!14
parent
750dc7a1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
228 deletions
+69
-228
lib/I_GUIDER/i_guider.dart
lib/I_GUIDER/i_guider.dart
+16
-54
lib/assets/images/lab.gif
lib/assets/images/lab.gif
+0
-0
lib/pages/self_carer/SC_medicalSupport.dart
lib/pages/self_carer/SC_medicalSupport.dart
+0
-76
lib/pages/self_carer/SC_result_screen.dart
lib/pages/self_carer/SC_result_screen.dart
+19
-58
lib/pages/self_carer/model/MessageSender.dart
lib/pages/self_carer/model/MessageSender.dart
+0
-36
lib/pages/self_carer/sc_main_screen.dart
lib/pages/self_carer/sc_main_screen.dart
+33
-0
pubspec.yaml
pubspec.yaml
+1
-4
No files found.
lib/I_GUIDER/i_guider.dart
View file @
ca609fac
...
...
@@ -44,23 +44,13 @@ class I_guider extends StatelessWidget {
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
child:
ButtonTheme
(
splashColor:
Colors
.
blue
,
minWidth:
100.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
icon:
Column
(
children:
[
Icon
(
Icons
.
bluetooth_audio_rounded
,
size:
40
,
color:
Colors
.
white
,
),
SizedBox
(
height:
20
),
Text
(
"BT Distancer"
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
white
)
,)
],
icon:
Icon
(
Icons
.
bluetooth_audio_rounded
,
size:
40
,
color:
Colors
.
white
,
),
label:
Text
(
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
)),
...
...
@@ -80,20 +70,10 @@ class I_guider extends StatelessWidget {
height:
150.0
,
child:
RaisedButton
.
icon
(
color:
Colors
.
greenAccent
,
icon:
Column
(
children:
[
Icon
(
Icons
.
face_unlock_sharp
,
size:
60
,
color:
Colors
.
white
,
),
SizedBox
(
height:
20
),
Text
(
"Mask Detector"
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
white
)
,)
],
icon:
Icon
(
Icons
.
face_unlock_sharp
,
size:
60
,
color:
Colors
.
white
,
),
label:
Text
(
''
,
...
...
@@ -126,19 +106,10 @@ class I_guider extends StatelessWidget {
minWidth:
100.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
icon:
Column
(
children:
[
Icon
(
Icons
.
view_stream_outlined
,
size:
40
,
color:
Colors
.
white
,
),
SizedBox
(
height:
20
),
Text
(
"Heart Monitor"
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
white
)
,)
],
icon:
Icon
(
Icons
.
view_stream_outlined
,
size:
40
,
color:
Colors
.
white
,
),
label:
Text
(
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
)),
...
...
@@ -161,19 +132,10 @@ class I_guider extends StatelessWidget {
height:
150.0
,
child:
RaisedButton
.
icon
(
color:
Colors
.
purple
[
200
],
icon:
Column
(
children:
[
Icon
(
Icons
.
online_prediction_sharp
,
size:
60
,
color:
Colors
.
white
,
),
SizedBox
(
height:
20
),
Text
(
"Self-Carer"
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
white
)
,)
],
icon:
Icon
(
Icons
.
online_prediction_sharp
,
size:
60
,
color:
Colors
.
white
,
),
label:
Text
(
''
,
...
...
lib/assets/images/lab.gif
deleted
100644 → 0
View file @
750dc7a1
127 KB
lib/pages/self_carer/SC_medicalSupport.dart
deleted
100644 → 0
View file @
750dc7a1
import
'package:covidefender/pages/self_carer/model/MessageSender.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
class
SC_medicalResult
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'Results'
),
),
body:
SingleChildScrollView
(
child:
Container
(
color:
Colors
.
white
,
child:
Column
(
children:
[
Center
(
child:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
MediaQuery
.
of
(
context
).
size
.
height
/
2.5
,
child:
Image
.
asset
(
'lib/assets/images/lab.gif'
)),
),
SizedBox
(
height:
10
,
),
Padding
(
padding:
const
EdgeInsets
.
all
(
16.0
),
child:
Text
(
"Request Medical Officer Support"
,
style:
GoogleFonts
.
lato
(
color:
Colors
.
green
,
fontSize:
24
,
fontWeight:
FontWeight
.
bold
,
letterSpacing:
2
)),
),
SizedBox
(
height:
10
,
),
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
20
,
50
,
50
,
10
),
child:
Text
(
"I agree To send My Details and location to Medical Officer "
,
style:
GoogleFonts
.
adamina
(
color:
Colors
.
blue
,
fontSize:
16
,
fontStyle:
FontStyle
.
italic
,
wordSpacing:
2
),
),
),
SizedBox
(
height:
60
,
),
SizedBox
(
height:
70
,
width:
350
,
child:
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
primary:
Colors
.
red
[
300
],
elevation:
15
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
12
)
)
),
onPressed:
()
{
MessageSender
m
=
new
MessageSender
();
m
.
SENDSMS
();
},
child:
Text
(
'SEND SMS'
,
style:
GoogleFonts
.
lato
(
fontWeight:
FontWeight
.
bold
,
fontSize:
16
),)),
)
],
),
),
),
);
}
}
lib/pages/self_carer/SC_result_screen.dart
View file @
ca609fac
import
'package:covidefender/pages/self_carer/SC_medicalSupport.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
class
SC_resultScreen
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'Results'
),
),
body:
SingleChildScrollView
(
child:
Container
(
color:
Colors
.
white
,
child:
Column
(
children:
[
Center
(
child:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
MediaQuery
.
of
(
context
).
size
.
height
/
2.5
,
child:
Image
.
asset
(
'lib/assets/images/lab.gif'
)),
),
SizedBox
(
height:
10
,
),
Text
(
"Analysis Results"
,
style:
GoogleFonts
.
lato
(
color:
Colors
.
blue
,
fontSize:
24
,
fontWeight:
FontWeight
.
bold
,
letterSpacing:
2
)),
SizedBox
(
height:
10
,
),
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
20
,
50
,
50
,
10
),
child:
Text
(
"Seem's you are having Symptoms Related to Covid19.
\n
"
"Let's Get Medical Assistance !
\n
"
"Click Below Button To Get a Health Officer"
,
style:
GoogleFonts
.
adamina
(
color:
Colors
.
red
,
fontSize:
16
,
fontStyle:
FontStyle
.
italic
,
wordSpacing:
2
),
),
),
SizedBox
(
height:
60
,
),
body:
Center
(
child:
Column
(
children:
[
Center
(
child:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
MediaQuery
.
of
(
context
).
size
.
height
/
2.5
,
child:
Image
.
asset
(
'lib/assets/images/hero.gif'
)),
),
Text
(
"Analysis Results"
),
ElevatedButton
(
onPressed:
(){},
child:
Text
(
'Medical Support'
))
SizedBox
(
height:
70
,
width:
350
,
child:
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
primary:
Colors
.
red
[
300
],
elevation:
15
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
12
)
)
),
onPressed:
()
{
Navigator
.
of
(
context
).
push
(
MaterialPageRoute
(
builder:
(
context
)=>
SC_medicalResult
()));
},
child:
Text
(
'Medical Support'
,
style:
GoogleFonts
.
lato
(
fontWeight:
FontWeight
.
bold
,
fontSize:
16
),)),
)
],
),
],
),
),
);
...
...
lib/pages/self_carer/model/MessageSender.dart
deleted
100644 → 0
View file @
750dc7a1
import
'dart:collection'
;
import
'package:flutter_sms/flutter_sms.dart'
;
class
MessageSender
{
List
<
String
>
recipients
=
[
"+94776957629"
];
Map
<
String
,
String
>
myDetails
=
{
"Name"
:
"Indika Nuwan"
,
"Address"
:
"02 nd post ,Mawanella"
,
"HomePhone"
:
"03522444555"
,
"message"
:
"This Patient Need Imediate assistance"
};
// MessageSender(this.recipients, this.message);
void
SENDSMS
()
async
{
print
(
myDetails
.
toString
());
String
result
=
await
sendSMS
(
message:
myDetails
.
toString
(),
recipients:
recipients
).
catchError
((
onError
)=>
print
(
onError
));
print
(
"result"
);
}
void
SetData
(
){
}
}
lib/pages/self_carer/sc_main_screen.dart
View file @
ca609fac
...
...
@@ -86,6 +86,13 @@ class SC_mainState extends State<SC_main> {
print
(
'
${key}
:
${value}
'
);
if
(
value
)
{
symptomList
.
putIfAbsent
(
key
,
()
=>
value
);
// if(symptomList.containsKey('Food') && symptomList.containsKey('Materials') ){
// print("all is here");
// }else if(symptomList.containsKey('Food')){
// print("Food only is here");
// Navigator.push(context, MaterialPageRoute(builder: (context)=>HomeScreen()));
// Navigator.pop(context);
// }
print
(
'Selected Items::'
+
symptomList
.
toString
());
}
...
...
@@ -101,6 +108,32 @@ class SC_mainState extends State<SC_main> {
),
),
// Padding(
// padding: const EdgeInsets.all(8.0),
// child: Card(
// elevation: 8,
// shape: RoundedRectangleBorder(
// borderRadius: BorderRadius.circular(15)),
// color: Colors.lightBlueAccent[100],
// child: Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Container(
// child: Image(
// image:
// AssetImage('lib/assets/images/man80.png'))),
// // SizedBox(width: 50),
// Text("Fever With Chills",style: TextStyle(color: Colors.white)),
// // SizedBox(width: 70),
// Checkbox(value: cbTestvalue, onChanged: (bool value){
// setState(() {
//
// });
// })
//
//
//
],
),
),
...
...
pubspec.yaml
View file @
ca609fac
...
...
@@ -39,9 +39,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons
:
^1.0.2
google_fonts
:
^1.1.2
flutter_sms
:
^2.1.1
http
:
^0.12.2
#add dependencies for heart rate module
...
...
@@ -112,7 +110,6 @@ flutter:
-
lib/assets/images/6.png
-
lib/assets/images/hero.gif
-
lib/assets/images/lab.gif
-
lib/assets/images/map80.png
-
lib/assets/images/man80.png
-
lib/assets/images/bar80.png
...
...
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