project setup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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