diff --git a/lib/configuration.dart b/lib/configuration.dart index a266df903e377375bd29a62e4c1ef9389b57ea27..b66237994f3046f773cf09e06e77e2da6427421a 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 4601c8020091d78b33132bcc39c5cded48d07ffd..837fa28be4a12b963f4bff0201f1890c65d623f7 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 df51ebb7c4792a4af2271dda5c0363523fdda7f2..faee89bf27404d117bc1911eb4f0d9dfe7cd8e7f 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),