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
b5731a53
Commit
b5731a53
authored
May 23, 2021
by
Indika NK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some Merge conflicts fixed
parent
0b1a3edc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
187 additions
and
9 deletions
+187
-9
lib/I_GUIDER/i_guider.dart
lib/I_GUIDER/i_guider.dart
+152
-0
lib/home_screen.dart
lib/home_screen.dart
+13
-7
pubspec.yaml
pubspec.yaml
+22
-2
No files found.
lib/I_GUIDER/i_guider.dart
0 → 100644
View file @
b5731a53
import
'package:covidefender/pages/heart_rate/heart_rate_screen.dart'
;
import
'package:covidefender/pages/mask_detect/invoker.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
class
I_guider
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
backgroundColor:
Colors
.
grey
[
200
],
appBar:
AppBar
(
title:
Text
(
'I-Guider'
),
// elevation: 0,
),
body:
Column
(
children:
[
Row
(
children:
[
Expanded
(
child:
Container
(
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
AssetImage
(
'lib/assets/images/hero.gif'
),
fit:
BoxFit
.
cover
)),
height:
300
,
),
),
],
),
//------------------------------------
SizedBox
(
height:
50
,
),
Row
(
children:
[
Expanded
(
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
child:
ButtonTheme
(
minWidth:
100.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
icon:
Icon
(
Icons
.
bluetooth_audio_rounded
,
size:
40
,
color:
Colors
.
white
,
),
label:
Text
(
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
)),
onPressed:
()
{},
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
)),
color:
Colors
.
blue
[
200
],
),
),
),
),
Expanded
(
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
child:
ButtonTheme
(
minWidth:
100.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
color:
Colors
.
greenAccent
,
icon:
Icon
(
Icons
.
face_unlock_sharp
,
size:
60
,
color:
Colors
.
white
,
),
label:
Text
(
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
),
),
onPressed:
()
{
print
(
'face mask detection'
);
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
invoker
())
);
// Navigator.pushNamed(context, '/invoker');
},
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
)),
),
),
),
)
],
),
SizedBox
(
height:
30
),
Row
(
children:
[
Expanded
(
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
child:
ButtonTheme
(
minWidth:
100.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
icon:
Icon
(
Icons
.
view_stream_outlined
,
size:
40
,
color:
Colors
.
white
,
),
label:
Text
(
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
)),
onPressed:
()
{
// action when button is pressed route to heart rate measurer
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
HeartRateScreen
()
));
},
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
)),
color:
Colors
.
redAccent
,
),
),
),
),
Expanded
(
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
child:
ButtonTheme
(
minWidth:
100.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
color:
Colors
.
purple
[
200
],
icon:
Icon
(
Icons
.
online_prediction_sharp
,
size:
60
,
color:
Colors
.
white
,
),
label:
Text
(
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
),
),
onPressed:
()
{},
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
)),
),
),
),
)
],
),
],
),
);
}
}
lib/home_screen.dart
View file @
b5731a53
import
'package:covidefender/I_GUIDER/splashIguider.dart'
;
import
'package:covidefender/STracker/splash.dart'
;
import
'package:covidefender/EAnalyzer/Loading.dart'
;
import
'package:flutter/material.dart'
;
...
...
@@ -131,13 +132,18 @@ class _HomeScreenState extends State<HomeScreen> {
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
Container
(
height:
size
.
height
*
.
1
,
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
AssetImage
(
'lib/assets/images/coach80.png'
)),
)),
FlatButton
(
onPressed:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
SplashScreen
()),
);
},
child:
Image
.
asset
(
'lib/assets/images/coach80.png'
),
),
Text
(
'Intelligent Guider'
,
style:
TextStyle
(
fontSize:
20.0
))
],
...
...
pubspec.yaml
View file @
b5731a53
...
...
@@ -24,6 +24,8 @@ dependencies:
flutter
:
sdk
:
flutter
flutter_svg
:
^0.22.0
tflite
:
^1.1.1
oktoast
:
^2.3.2
...
...
@@ -31,6 +33,14 @@ dependencies:
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons
:
^1.0.2
#add dependencies for heart rate module
charts_flutter
:
^0.9.0
wakelock
:
^0.1.4+1
camera
:
git
:
url
:
http://github.com/indikaNK/plugins.git
path
:
packages/camera/camera
dev_dependencies
:
flutter_test
:
sdk
:
flutter
...
...
@@ -60,8 +70,6 @@ flutter:
-
lib/assets/images/feedback80.png
-
lib/assets/images/list80.png
-
lib/assets/images/search80.png
-
lib/assets/
-
lib/assets/images/awrenessLevel.png
-
lib/assets/images/exit.png
...
...
@@ -77,6 +85,18 @@ flutter:
-
lib/assets/images/socialDistance.png
-
lib/assets/images/symptoms.png
-
lib/assets/images/startQuiz.png
-
lib/assets/images/hero.gif
-
lib/assets/images/map80.png
-
lib/assets/images/man80.png
-
lib/assets/images/bar80.png
-
lib/assets/images/coach80.png
-
lib/assets/images/time80.png
-
lib/assets/images/event80.png
-
lib/assets/images/pulse.gif
-
lib/assets/model.tflite
-
lib/assets/labels.txt
-
assets/
-
lib/assets/images/wear.gif
# To add assets to your application, add an assets section, like this:
# 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