35 lines
961 B
Dart
35 lines
961 B
Dart
import 'package:briessenchecker/services/dbhelper.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
|
import 'pages/dashboard_page.dart';
|
|
import 'pages/landing_page.dart';
|
|
import 'pages/login_page.dart';
|
|
|
|
void main() async {
|
|
await dotenv.load(fileName: 'secrets.env');
|
|
await DbHelper.init();
|
|
runApp(const MyApp());
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Briessenchecker',
|
|
theme: ThemeData.dark(
|
|
useMaterial3: true,
|
|
).copyWith(
|
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
|
),
|
|
initialRoute: '/',
|
|
routes: {
|
|
LandingPage.routeName: (context) => const LandingPage(),
|
|
LoginPage.routeName: (context) => const LoginPage(),
|
|
DashboardPage.routeName: (context) => const DashboardPage(),
|
|
},
|
|
);
|
|
}
|
|
}
|