From e69d0fc75871c927b1b4941968575e8e0cfc9cb2 Mon Sep 17 00:00:00 2001
From: Trang Nguyen <thi_huyen_trang.nguyen@student.reutlingen-university.de>
Date: Tue, 8 Dec 2020 16:33:33 +0100
Subject: [PATCH] KAT-49: Added LockScreen page in lock_screen.dart and
 navigated RaisedButton to LockScreen page in camera_access.dart

---
 .../start_triage_system/camera_access.dart    |  11 +-
 .../lib/start_triage_system/lock_screen.dart  | 126 ++++++++++++++++++
 2 files changed, 136 insertions(+), 1 deletion(-)
 create mode 100644 rescueapp/lib/start_triage_system/lock_screen.dart

diff --git a/rescueapp/lib/start_triage_system/camera_access.dart b/rescueapp/lib/start_triage_system/camera_access.dart
index dd880c5..c35c347 100644
--- a/rescueapp/lib/start_triage_system/camera_access.dart
+++ b/rescueapp/lib/start_triage_system/camera_access.dart
@@ -1,5 +1,7 @@
 import 'package:flutter/material.dart';
 
+import 'lock_screen.dart';
+
 class CameraAccess extends StatefulWidget {
 
   CameraAccess({Key key, this.title}) : super(key: key);
@@ -63,7 +65,14 @@ class _CameraAccessState extends State<CameraAccess> {
                     child: Text('Absenden',
                         style: TextStyle(color: Colors.white, fontSize: 20)),
                     color: Colors.red,
-                    onPressed: null,
+                    onPressed: () {
+                      Navigator.push(
+                        context,
+                        MaterialPageRoute(
+                            builder: (context) =>
+                                LockScreen()),
+                      );
+                    },
                   ),
                 ),
                 SizedBox(
diff --git a/rescueapp/lib/start_triage_system/lock_screen.dart b/rescueapp/lib/start_triage_system/lock_screen.dart
new file mode 100644
index 0000000..48c6f28
--- /dev/null
+++ b/rescueapp/lib/start_triage_system/lock_screen.dart
@@ -0,0 +1,126 @@
+import 'package:flutter/material.dart';
+
+class LockScreen extends StatefulWidget {
+  LockScreen({Key key, this.title}) : super(key: key);
+  final String title;
+  @override
+  _LockScreenState createState() => _LockScreenState();
+}
+
+class _LockScreenState extends State<LockScreen> {
+  @override
+  Widget build(BuildContext context) {
+    return Scaffold(
+      backgroundColor: Colors.green,
+      appBar: AppBar(
+        title: Text('KatApp'),
+      ),
+      body: Padding(
+        padding: EdgeInsets.symmetric(horizontal: 40, vertical: 10),
+        child: Column(
+          children: <Widget>[
+            SizedBox(
+                height: 200,
+                child: Container(
+                  alignment: Alignment.center,
+                  child: Text('Kategorie T3',
+                      style: TextStyle(
+                          fontSize: 50,
+                          fontWeight: FontWeight.w900,
+                          color: Colors.blue[1000])),
+                )),
+            SizedBox(
+                height: 40,
+                child: Container(
+                  alignment: Alignment.centerLeft,
+                  child: Text('PatientenID:',
+                      style: TextStyle(
+                        fontSize: 20,
+                        color: Colors.blue[900],
+                      )),
+                )),
+            SizedBox(
+                height: 40,
+                child: Container(
+                  decoration: BoxDecoration(color: Colors.grey[400]),
+                  alignment: Alignment.centerLeft,
+                  child: Text('NULL',
+                      style: TextStyle(
+                        fontSize: 20,
+                        color: Colors.blue[900],
+                      )),
+                )),
+            SizedBox(
+                height: 40,
+                child: Container(
+                  alignment: Alignment.centerLeft,
+                  child: Text('Standort:',
+                      style: TextStyle(fontSize: 20, color: Colors.blue[900])),
+                )),
+            SizedBox(
+                height: 40,
+                child: Container(
+                  decoration: BoxDecoration(color: Colors.grey[400]),
+                  alignment: Alignment.centerLeft,
+                  child: Text('NULL',
+                      style: TextStyle(
+                        fontSize: 20,
+                        color: Colors.blue[900],
+                      )),
+                )),
+            SizedBox(
+                height: 40,
+                child: Container(
+                  alignment: Alignment.centerLeft,
+                  child: Text('Datum/ Uhrzeit:',
+                      style: TextStyle(fontSize: 20, color: Colors.blue[900])),
+                )),
+            SizedBox(
+                height: 40,
+                child: Container(
+                  decoration: BoxDecoration(color: Colors.grey[400]),
+                  alignment: Alignment.centerLeft,
+                  child: Text('NULL',
+                      style: TextStyle(
+                        fontSize: 20,
+                        color: Colors.blue[900],
+                      )),
+                )),
+            SizedBox(
+              height: 80,
+            ),
+            SizedBox(
+                width: 200,
+                height: 50,
+                child: Container(
+                    child: RaisedButton(
+                        child: new Text('Zweite Sichtung',
+                            style: TextStyle(
+                                fontSize: 20,
+                                fontWeight: FontWeight.w600,
+                                color: Colors.white)),
+                        color: Colors.grey,
+                        onPressed: null))),
+            SizedBox(
+              height: 20,
+            ),
+            SizedBox(
+                width: 200,
+                height: 50,
+                child: Container(
+                    child: RaisedButton(
+                        child: new Text('Zurück',
+                            style: TextStyle(
+                                fontSize: 20,
+                                fontWeight: FontWeight.w600,
+                                color: Colors.white)),
+                        color: Colors.blue[900],
+                        onPressed: () {
+                          Navigator.pop(context);
+                        }))),
+          ],
+        ),
+      ),
+    );
+  }
+}
-- 
GitLab