project setup
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'pages/dashboard_page.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
}
|
||||
@@ -15,6 +17,9 @@ class MyApp extends StatelessWidget {
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
||||
useMaterial3: true,
|
||||
),
|
||||
routes: {
|
||||
DashboardPage.routeName: (context) => const DashboardPage(),
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
11
lib/models/todo.dart
Normal file
11
lib/models/todo.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class Todo {
|
||||
final String title;
|
||||
final String description;
|
||||
final DateTime createdAt;
|
||||
|
||||
Todo({
|
||||
required this.title,
|
||||
required this.description,
|
||||
required this.createdAt,
|
||||
});
|
||||
}
|
||||
11
lib/pages/dashboard_page.dart
Normal file
11
lib/pages/dashboard_page.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class DashboardPage extends StatelessWidget {
|
||||
const DashboardPage({super.key});
|
||||
static const routeName = '/';
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const Scaffold();
|
||||
}
|
||||
}
|
||||
1
lib/services/dbhelper.dart
Normal file
1
lib/services/dbhelper.dart
Normal file
@@ -0,0 +1 @@
|
||||
class DbHelper {}
|
||||
Reference in New Issue
Block a user