added new pages

This commit is contained in:
marcoabat
2023-08-05 14:07:21 +02:00
parent c5c00b999e
commit 77e1fa8244
5 changed files with 36 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ class _DashboardPageState extends State<DashboardPage> {
future: checklistFuture,
builder: _futureBuilder,
),
floatingActionButton: FloatingActionButton(
onPressed: _onAddTapped,
child: const Icon(Icons.add),
),
);
}
@@ -43,4 +47,8 @@ class _DashboardPageState extends State<DashboardPage> {
subtitle: Text(cl.description),
);
}
void _onAddTapped() {
DbHelper.addChecklist().then((id) {});
}
}