diff --git a/analysis_options.yaml b/analysis_options.yaml index 0d29021..7a178e6 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -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 diff --git a/lib/main.dart b/lib/main.dart index d4ba0c2..72ff1f1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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(), + }, ); } } diff --git a/lib/models/todo.dart b/lib/models/todo.dart new file mode 100644 index 0000000..95db1d0 --- /dev/null +++ b/lib/models/todo.dart @@ -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, + }); +} diff --git a/lib/pages/dashboard_page.dart b/lib/pages/dashboard_page.dart new file mode 100644 index 0000000..e5e6390 --- /dev/null +++ b/lib/pages/dashboard_page.dart @@ -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(); + } +} diff --git a/lib/services/dbhelper.dart b/lib/services/dbhelper.dart new file mode 100644 index 0000000..be01102 --- /dev/null +++ b/lib/services/dbhelper.dart @@ -0,0 +1 @@ +class DbHelper {}