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
a869be02
Commit
a869be02
authored
Jun 27, 2021
by
Indika NK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted some renderflex errors
parent
4df3ba21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
125 additions
and
120 deletions
+125
-120
lib/I_GUIDER/i_guider.dart
lib/I_GUIDER/i_guider.dart
+125
-120
No files found.
lib/I_GUIDER/i_guider.dart
View file @
a869be02
...
...
@@ -7,148 +7,153 @@ import 'package:flutter/material.dart';
class
I_guider
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
final
mesure
=
MediaQuery
.
of
(
context
);
return
Scaffold
(
backgroundColor:
Colors
.
grey
[
200
]
,
backgroundColor:
Colors
.
white
,
appBar:
AppBar
(
centerTitle:
true
,
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
,
body:
SingleChildScrollView
(
child:
Column
(
children:
[
Row
(
children:
[
Expanded
(
child:
Container
(
height:
mesure
.
size
.
height
/
3
,
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
AssetImage
(
'lib/assets/images/hero.gif'
),
fit:
BoxFit
.
cover
)),
),
),
),
],
),
//------------------------------------
],
),
//------------------------------------
SizedBox
(
height:
50
,
),
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
,
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
],
),
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
),
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
)),
),
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
,
)
],
),
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
,
),
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
),
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:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)=>
SC_main
()));
},
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
)),
),
onPressed:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)=>
SC_main
()));
},
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
)),
),
),
)
,
)
]
,
)
,
]
,
)
],
)
,
]
,
)
,
),
);
}
...
...
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