project setup

This commit is contained in:
SomnusVeritas
2023-11-08 10:29:02 +01:00
parent 7a0d1391ec
commit 0d843b442d
5 changed files with 30 additions and 1 deletions

View File

@@ -22,7 +22,8 @@ linter:
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
prefer_relative_imports: true
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

View File

@@ -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
View 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,
});
}

View 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();
}
}

View File

@@ -0,0 +1 @@
class DbHelper {}