Result Page created

This commit is contained in:
Niklas 2024-01-11 22:30:31 +01:00
parent 8798b73b15
commit a5a159f9c7
1 changed files with 50 additions and 3 deletions

View File

@ -165,8 +165,7 @@ class _MyFormPageState extends State<MyFormPage> {
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: <Widget>[
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();