Skip to content
Snippets Groups Projects
Commit e69d0fc7 authored by Thi Huyen Trang Nguyen's avatar Thi Huyen Trang Nguyen
Browse files

KAT-49: Added LockScreen page in lock_screen.dart and navigated RaisedButton...

KAT-49: Added LockScreen page in lock_screen.dart and navigated RaisedButton to LockScreen page in camera_access.dart
parent 7f6826f9
No related branches found
No related tags found
No related merge requests found
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(
......
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);
}))),
],
),
),
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment