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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thi Huyen Trang Nguyen
KatApp
Merge requests
!1
Kat 50 add database and MyHomePage2.dart
Code
Änderungen prüfen
Branch auschecken
Herunterladen
Patches
Unformatierter Diff
Merged
Kat 50 add database and MyHomePage2.dart
KAT-50
into
master
Overview
0
Commits
6
Pipelines
0
Changes
1
Merged
Thi Huyen Trang Nguyen
requested to merge
KAT-50
into
master
4 years ago
Overview
0
Commits
6
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
d8943ed5
Prev
Next
Show latest version
1 file
+
156
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
d8943ed5
add page to MyHomePage3.dart
· d8943ed5
Thi Huyen Trang Nguyen
authored
4 years ago
rescueapp/lib/MyHomePage3.dart
0 → 100644
+
156
−
0
Options
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
);
}))),
],
),
),
);
}
}
Loading