Detail page with actual data from db

This commit is contained in:
marcoabat
2023-08-05 17:11:16 +02:00
parent ce57940c21
commit 6f8ee1a6ab
3 changed files with 31 additions and 9 deletions

View File

@@ -63,6 +63,7 @@ class _DashboardPageState extends State<DashboardPage> {
return ListTile(
title: Text(cl.title == '' ? 'Unnamed ${cl.id}' : cl.title),
subtitle: Text(cl.description),
onTap: () => _onListEntryTapped(cl),
);
}
@@ -72,4 +73,9 @@ class _DashboardPageState extends State<DashboardPage> {
});
Navigator.of(context).pushNamed(DetailChecklistPage.routeName);
}
void _onListEntryTapped(Checklist cl) {
checklistProvider.updateSelectedChecklist(cl.id, silent: true);
Navigator.of(context).pushNamed(DetailChecklistPage.routeName);
}
}