From 5b8b879056af004d1dc7d091cbb5ba20cf281dcf Mon Sep 17 00:00:00 2001
From: Maximilian Betz <Maximilian.Betz@awi.de>
Date: Mon, 28 Mar 2022 08:43:48 +0200
Subject: [PATCH] added Information Widget

---
 lib/configuration.dart |  2 +-
 lib/overview.dart      | 48 +++++++++++++++++++++++++++++++++++++++++-
 lib/viewevents.dart    |  2 +-
 3 files changed, 49 insertions(+), 3 deletions(-)

diff --git a/lib/configuration.dart b/lib/configuration.dart
index a266df9..b662379 100644
--- a/lib/configuration.dart
+++ b/lib/configuration.dart
@@ -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
diff --git a/lib/overview.dart b/lib/overview.dart
index 4601c80..837fa28 100644
--- a/lib/overview.dart
+++ b/lib/overview.dart
@@ -1,10 +1,56 @@
 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,
diff --git a/lib/viewevents.dart b/lib/viewevents.dart
index df51ebb..faee89b 100644
--- a/lib/viewevents.dart
+++ b/lib/viewevents.dart
@@ -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),
-- 
GitLab