diff --git a/rescueapp/lib/start_triage_system/camera_access.dart b/rescueapp/lib/start_triage_system/camera_access.dart index dd880c529aeaec7f52d1ac3e6f976a9c3f6a26a4..c35c347216fed764a7930d0427425f538e5f11da 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 0000000000000000000000000000000000000000..48c6f28f43049078dad61c2a8dc38a27087a2089 --- /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); + }))), + ], + ), + ), + ); + } +}