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
1c0faff8
Commit
1c0faff8
authored
Jul 01, 2021
by
indika N kumara
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'I_GUIDER_PHASE_02_NK' into 'mix_Eanalyzer_and_Iguider_phase02'
I guider phase 02 nk See merge request
!13
parents
e3e5cab2
7a717f26
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
228 additions
and
69 deletions
+228
-69
lib/I_GUIDER/i_guider.dart
lib/I_GUIDER/i_guider.dart
+54
-16
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
+76
-0
lib/pages/self_carer/SC_result_screen.dart
lib/pages/self_carer/SC_result_screen.dart
+58
-19
lib/pages/self_carer/model/MessageSender.dart
lib/pages/self_carer/model/MessageSender.dart
+36
-0
lib/pages/self_carer/sc_main_screen.dart
lib/pages/self_carer/sc_main_screen.dart
+0
-33
pubspec.yaml
pubspec.yaml
+4
-1
No files found.
lib/I_GUIDER/i_guider.dart
View file @
1c0faff8
...
...
@@ -44,13 +44,23 @@ 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:
Icon
(
Icons
.
bluetooth_audio_rounded
,
size:
40
,
color:
Colors
.
white
,
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
)
,)
],
),
label:
Text
(
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
)),
...
...
@@ -70,10 +80,20 @@ class I_guider extends StatelessWidget {
height:
150.0
,
child:
RaisedButton
.
icon
(
color:
Colors
.
greenAccent
,
icon:
Icon
(
Icons
.
face_unlock_sharp
,
size:
60
,
color:
Colors
.
white
,
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
)
,)
],
),
label:
Text
(
''
,
...
...
@@ -106,10 +126,19 @@ class I_guider extends StatelessWidget {
minWidth:
100.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
icon:
Icon
(
Icons
.
view_stream_outlined
,
size:
40
,
color:
Colors
.
white
,
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
)
,)
],
),
label:
Text
(
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
)),
...
...
@@ -132,10 +161,19 @@ class I_guider extends StatelessWidget {
height:
150.0
,
child:
RaisedButton
.
icon
(
color:
Colors
.
purple
[
200
],
icon:
Icon
(
Icons
.
online_prediction_sharp
,
size:
60
,
color:
Colors
.
white
,
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
)
,)
],
),
label:
Text
(
''
,
...
...
lib/assets/images/lab.gif
0 → 100644
View file @
1c0faff8
127 KB
lib/pages/self_carer/SC_medicalSupport.dart
0 → 100644
View file @
1c0faff8
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 @
1c0faff8
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:
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'
))
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
,
),
],
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
0 → 100644
View file @
1c0faff8
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 @
1c0faff8
...
...
@@ -86,13 +86,6 @@ 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
());
}
...
...
@@ -108,32 +101,6 @@ 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 @
1c0faff8
...
...
@@ -39,7 +39,9 @@ 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
http
:
^0.12.2
google_fonts
:
^1.1.2
flutter_sms
:
^2.1.1
#add dependencies for heart rate module
...
...
@@ -110,6 +112,7 @@ 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