Detail page with actual data from db
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user