diff --git a/emma/lib/main.dart b/emma/lib/main.dart index f301e9f..1be0f69 100644 --- a/emma/lib/main.dart +++ b/emma/lib/main.dart @@ -165,8 +165,7 @@ class _MyFormPageState extends State { Text('Your longtitude: ${_userLocation?.longitude}') ], ) - : const Text( - 'Please enable location service and grant permission'), + : const Text(''), const SizedBox(height: 20), /*TextFormField( obscureText: true, @@ -900,7 +899,7 @@ class TimePage extends StatelessWidget { onPressed: () { // Wenn alle Validatoren der Felder des Formulars gültig sind. Navigator.push(context, MaterialPageRoute(builder: (context) { - return CategoriePage(); + return ListViewPage(); })); }, child: const Text('Weiter'), @@ -913,6 +912,54 @@ class TimePage extends StatelessWidget { } } +class ListViewPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text("Ergebnis"), + ), + body: ListView( + padding: const EdgeInsets.all(8), + children: [ + Card( + child: ListTile( + title: Text("Eiskeller"), + subtitle: Text("Cast your vote."), + leading: CircleAvatar( + backgroundImage: NetworkImage( + "https://lh5.googleusercontent.com/p/AF1QipPgpewr7i476_drEHgiY1Q72jt2_GanaCdt6V8a=w203-h152-k-no")), + trailing: Icon(Icons.star))), + Card( + child: ListTile( + title: Text("Battery Full"), + subtitle: Text("The battery is full."), + leading: CircleAvatar( + backgroundImage: NetworkImage( + "https://images.unsplash.com/photo-1547721064-da6cfb341d50")), + trailing: Icon(Icons.star))), + Card( + child: ListTile( + title: Text("Anchor"), + subtitle: Text("Lower the anchor."), + leading: CircleAvatar( + backgroundImage: NetworkImage( + "https://lh5.googleusercontent.com/p/AF1QipPgpewr7i476_drEHgiY1Q72jt2_GanaCdt6V8a=w203-h152-k-no")), + trailing: Icon(Icons.star))), + Card( + child: ListTile( + title: Text("Alarm"), + subtitle: Text("This is the time."), + leading: CircleAvatar( + backgroundImage: NetworkImage( + "https://lh5.googleusercontent.com/p/AF1QipPgpewr7i476_drEHgiY1Q72jt2_GanaCdt6V8a=w203-h152-k-no")), + trailing: Icon(Icons.star))), + ], + ), + ); + } +} + class _AsyncAutocomplete extends StatefulWidget { const _AsyncAutocomplete();