Skip to content
Snippets Groups Projects
Commit 5b8b8790 authored by Maximilian Betz's avatar Maximilian Betz
Browse files

added Information Widget

parent 6b264e81
No related branches found
No related tags found
No related merge requests found
......@@ -213,4 +213,4 @@ class _MyHomePageState extends State<Configuration> {
}
}
//TODO: add scrowlable view here for landscape compatibility.
\ No newline at end of file
//TODO: add scrowlable view here for landscape compatibility.
\ No newline at end of file
import 'package:flutter/material.dart';
class Overview extends StatelessWidget {
const Overview({Key? key}) : super(key: key);
Widget _buildPopupInfoDialog(BuildContext context) {
return AlertDialog(
title: const Text('Version 1.0.0'),
content: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: const <Widget>[
Icon( Icons.copyright_outlined),
Text('Alfred Wegener Institute'),
Text('Maximilian Betz'),
SizedBox(height: 30),
Text('o2a-support@awi.de'),
],
),
actions: <Widget>[
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Close'),
),
],
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Mobile Event Log')),
appBar: AppBar(
title: const Text('Mobile Event Log'),
actions: [
IconButton(
icon: const Icon(
Icons.info,
size: 34.0),
onPressed: (){
showDialog(
barrierDismissible: false,
context: context,
builder: (BuildContext context) => _buildPopupInfoDialog(context),
);
}
),
],
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
......
......@@ -77,7 +77,7 @@ class _ViewEvents extends State<ViewEvents> {
return Scaffold(
appBar: AppBar(
title: const Text("View Added Events"),
title: const Text("View & Sync"),
),
body: Container(
margin: const EdgeInsets.symmetric(horizontal: 5.0),
......
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