added new pages
This commit is contained in:
@@ -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) {});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user