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) {});
|
||||
}
|
||||
}
|
||||
|
||||
10
lib/pages/detail_checklist_page.dart
Normal file
10
lib/pages/detail_checklist_page.dart
Normal 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();
|
||||
}
|
||||
}
|
||||
10
lib/pages/edit_checklist_page.dart
Normal file
10
lib/pages/edit_checklist_page.dart
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user