diff --git a/lib/configuration.dart b/lib/configuration.dart index fb865d4414e21005bc0d2ed6074e5da03dfb43e4..25ba7b129e250820431d22e869d71347d700799a 100644 --- a/lib/configuration.dart +++ b/lib/configuration.dart @@ -195,6 +195,7 @@ class _MyHomePageState extends State<Configuration> { HapticFeedback.vibrate(); //TODO: display success user feedback + //TODO: store complete "configuration" } catch (e) { throw Exception('Something went wrong try again'); } diff --git a/lib/overview.dart b/lib/overview.dart index b505824330f1e0442efb247b521a0b07a6636344..4601c8020091d78b33132bcc39c5cded48d07ffd 100644 --- a/lib/overview.dart +++ b/lib/overview.dart @@ -13,7 +13,7 @@ class Overview extends StatelessWidget { const SizedBox(height: 10), Expanded( child: ElevatedButton( - child: const Text('Add Event', style: TextStyle(fontSize: 22)), + child: const Text('Add Event', style: TextStyle(fontSize: 36)), onPressed: () { Navigator.pushNamed(context, '/second'); }, @@ -22,7 +22,7 @@ class Overview extends StatelessWidget { const SizedBox(height: 10), Expanded( child: ElevatedButton( - child: const Text('View and Sync', style: TextStyle(fontSize: 22)), + child: const Text('View & Sync', style: TextStyle(fontSize: 36)), onPressed: () { Navigator.pushNamed(context, '/third'); }, @@ -31,7 +31,7 @@ class Overview extends StatelessWidget { const SizedBox(height: 10), Expanded( child: ElevatedButton( - child: const Text('Configuration', style: TextStyle(fontSize: 22)), + child: const Text('Configuration', style: TextStyle(fontSize: 36)), onPressed: () { Navigator.pushNamed(context, '/forth'); }, diff --git a/lib/viewevents.dart b/lib/viewevents.dart index 6943a4d400ce6cb4e8a1e219c3cb42922b29cd51..c8b71ee2a695bf1fd1936154d356645e6bede1c4 100644 --- a/lib/viewevents.dart +++ b/lib/viewevents.dart @@ -1,4 +1,5 @@ import 'dart:convert'; +import 'dart:io'; import 'package:flutter/material.dart'; import 'datamodel.dart'; import 'package:http/http.dart' as http; @@ -57,6 +58,9 @@ class _ViewEvents extends State<ViewEvents> { } _sync_status = 'export success'; } + } on SocketException catch (e) { + _sync_status = 'No connection'; + setState(() {}); } catch (e) { debugPrint('Exception: $e'); _sync_status = '$e';