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';
...
@@ -7,148 +7,153 @@ import 'package:flutter/material.dart';
class
I_guider
extends
StatelessWidget
{
class
I_guider
extends
StatelessWidget
{
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
final
mesure
=
MediaQuery
.
of
(
context
);
return
Scaffold
(
return
Scaffold
(
backgroundColor:
Colors
.
grey
[
200
]
,
backgroundColor:
Colors
.
white
,
appBar:
AppBar
(
appBar:
AppBar
(
centerTitle:
true
,
title:
Text
(
'I-Guider'
),
title:
Text
(
'I-Guider'
),
// elevation: 0,
// elevation: 0,
),
),
body:
Column
(
body:
SingleChildScrollView
(
children:
[
child:
Column
(
Row
(
children:
[
children:
[
Row
(
Expanded
(
children:
[
child:
Container
(
Expanded
(
decoration:
BoxDecoration
(
child:
Container
(
image:
DecorationImage
(
height:
mesure
.
size
.
height
/
3
,
image:
AssetImage
(
'lib/assets/images/hero.gif'
),
decoration:
BoxDecoration
(
fit:
BoxFit
.
cover
)),
image:
DecorationImage
(
height:
300
,
image:
AssetImage
(
'lib/assets/images/hero.gif'
),
fit:
BoxFit
.
cover
)),
),
),
),
),
],
],
),
),
//------------------------------------
//------------------------------------
SizedBox
(
SizedBox
(
height:
50
,
height:
50
,
),
),
Row
(
Row
(
children:
[
children:
[
Expanded
(
Expanded
(
child:
Padding
(
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
child:
ButtonTheme
(
child:
ButtonTheme
(
minWidth:
100.0
,
minWidth:
100.0
,
height:
150.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
child:
RaisedButton
.
icon
(
icon:
Icon
(
icon:
Icon
(
Icons
.
bluetooth_audio_rounded
,
Icons
.
bluetooth_audio_rounded
,
size:
40
,
size:
40
,
color:
Colors
.
white
,
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
(
Expanded
(
child:
Padding
(
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
child:
ButtonTheme
(
child:
ButtonTheme
(
minWidth:
100.0
,
minWidth:
100.0
,
height:
150.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
child:
RaisedButton
.
icon
(
color:
Colors
.
greenAccent
,
color:
Colors
.
greenAccent
,
icon:
Icon
(
icon:
Icon
(
Icons
.
face_unlock_sharp
,
Icons
.
face_unlock_sharp
,
size:
60
,
size:
60
,
color:
Colors
.
white
,
color:
Colors
.
white
,
),
),
label:
Text
(
label:
Text
(
''
,
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
),
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
),
SizedBox
(
height:
30
),
Row
(
Row
(
children:
[
children:
[
Expanded
(
Expanded
(
child:
Padding
(
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
child:
ButtonTheme
(
child:
ButtonTheme
(
minWidth:
100.0
,
minWidth:
100.0
,
height:
150.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
child:
RaisedButton
.
icon
(
icon:
Icon
(
icon:
Icon
(
Icons
.
view_stream_outlined
,
Icons
.
view_stream_outlined
,
size:
40
,
size:
40
,
color:
Colors
.
white
,
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
(
Expanded
(
child:
Padding
(
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
padding:
const
EdgeInsets
.
fromLTRB
(
8
,
0
,
8
,
0
),
child:
ButtonTheme
(
child:
ButtonTheme
(
minWidth:
100.0
,
minWidth:
100.0
,
height:
150.0
,
height:
150.0
,
child:
RaisedButton
.
icon
(
child:
RaisedButton
.
icon
(
color:
Colors
.
purple
[
200
],
color:
Colors
.
purple
[
200
],
icon:
Icon
(
icon:
Icon
(
Icons
.
online_prediction_sharp
,
Icons
.
online_prediction_sharp
,
size:
60
,
size:
60
,
color:
Colors
.
white
,
color:
Colors
.
white
,
),
),
label:
Text
(
label:
Text
(
''
,
''
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
),
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