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) {});
}
}

View File

@@ -0,0 +1,10 @@
import 'package:flutter/material.dart';
class DetailChecklistPage extends StatelessWidget {
const DetailChecklistPage({super.key});
static const routeName = '/detail';
@override
Widget build(BuildContext context) {
return const Placeholder();
}
}

View File

@@ -0,0 +1,10 @@
import 'package:flutter/material.dart';
class EditChecklistPage extends StatelessWidget {
const EditChecklistPage({super.key});
static const routeName = '/edit';
@override
Widget build(BuildContext context) {
return const Placeholder();
}
}