Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KatApp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thi Huyen Trang Nguyen
KatApp
Commits
75d1f4a5
Commit
75d1f4a5
authored
Nov 17, 2020
by
Thi Huyen Trang Nguyen
Browse files
Options
Downloads
Patches
Plain Diff
KAT-50: First implementation of page "after opening airways"
parent
b21f7050
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
rescueapp/lib/MyHomePage3.dart
+156
-0
156 additions, 0 deletions
rescueapp/lib/MyHomePage3.dart
with
156 additions
and
0 deletions
rescueapp/lib/MyHomePage3.dart
0 → 100644
+
156
−
0
View file @
75d1f4a5
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:rescueapp/CameraAcess.dart'
;
import
'model-patient/patient.dart'
;
class
MyHomePage3
extends
StatefulWidget
{
MyHomePage3
({
this
.
patient
,
this
.
patientIndex
,
Key
key
,
this
.
title
})
:
super
(
key:
key
);
final
String
title
;
final
Patient
patient
;
final
int
patientIndex
;
@override
_MyHomePageState
createState
()
=
>
_MyHomePageState
();
}
class
_MyHomePageState
extends
State
<
MyHomePage3
>
{
bool
_isAmbilatory
;
final
GlobalKey
<
FormState
>
_formKey
=
GlobalKey
<
FormState
>();
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'KatApp2'
),
),
body:
Padding
(
padding:
EdgeInsets
.
symmetric
(
horizontal:
40
,
vertical:
10
),
child:
Column
(
children:
<
Widget
>[
SizedBox
(
height:
40
,
child:
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
grey
[
500
]
),
alignment:
Alignment
.
center
,
child:
Text
(
'Ist der Patient gehfähig?'
,
style:
TextStyle
(
fontSize:
22
,
color:
Colors
.
blue
[
900
])),
)
),
SizedBox
(
height:
40
,
child:
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
grey
[
500
]
),
alignment:
Alignment
.
center
,
child:
Text
(
'Nein'
,
style:
TextStyle
(
fontSize:
20
,
color:
Colors
.
blue
[
900
],
backgroundColor:
Colors
.
grey
[
500
])),
)),
SizedBox
(
height:
40
,
child:
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
grey
[
500
]
),
alignment:
Alignment
.
center
,
child:
Text
(
'A:Spontanatmung vorhanden?'
,
style:
TextStyle
(
fontSize:
20
,
color:
Colors
.
blue
[
900
],
backgroundColor:
Colors
.
grey
[
500
])),
)),
SizedBox
(
height:
40
,
child:
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
grey
[
500
]
),
alignment:
Alignment
.
center
,
child:
Text
(
'Nein'
,
style:
TextStyle
(
fontSize:
20
,
color:
Colors
.
blue
[
900
],
backgroundColor:
Colors
.
grey
[
500
])),
)),
SizedBox
(
height:
100
,),
SizedBox
(
height:
50
,
child:
Container
(
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
border:
Border
(
left:
BorderSide
(
color:
Colors
.
red
,
width:
2
),
right:
BorderSide
(
color:
Colors
.
red
,
width:
2
),
top:
BorderSide
(
color:
Colors
.
red
,
width:
2
),
),),
child:
Text
(
'Kategorie A'
,
style:
TextStyle
(
fontSize:
22
,
fontWeight:
FontWeight
.
w700
,
color:
Colors
.
blue
[
900
],
backgroundColor:
Colors
.
white
)),
)),
SizedBox
(
height:
50
,
width:
500
,
child:
Container
(
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
border:
Border
(
left:
BorderSide
(
color:
Colors
.
red
,
width:
2
),
right:
BorderSide
(
color:
Colors
.
red
,
width:
2
),
bottom:
BorderSide
(
color:
Colors
.
red
,
width:
2
),
),),
child:
Text
(
'Nach Öffnung der Atemwege?'
,
style:
TextStyle
(
fontSize:
22
,
fontWeight:
FontWeight
.
w700
,
color:
Colors
.
blue
[
900
],
backgroundColor:
Colors
.
white
)),
)),
SizedBox
(
height:
100
,
),
SizedBox
(
child:
Container
(
width:
double
.
infinity
,
alignment:
Alignment
.
center
,
child:
RaisedButton
(
child:
new
Text
(
'Ja'
),
color:
Colors
.
blue
,
onPressed:
()
{
setState
(()
{
_isAmbilatory
=
true
;
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=
>
CameraAccess
()),
);
});
}))),
SizedBox
(
child:
Container
(
alignment:
Alignment
.
center
,
child:
RaisedButton
(
child:
new
Text
(
'Nein'
),
color:
Colors
.
blue
,
onPressed:
()
{
setState
(()
{
_isAmbilatory
=
false
;
});
}))),
SizedBox
(
width:
200
,
child:
Container
(
alignment:
Alignment
.
center
,
child:
ElevatedButton
(
child:
new
Text
(
'Zurück'
),
onPressed:
()
{
Navigator
.
pop
(
context
);
}))),
],
),
),
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment