2023-03-30 15:19:24 +13:00
|
|
|
import 'package:flutter/material.dart';
|
2023-04-09 14:39:41 +12:00
|
|
|
import 'package:fmassive/database.dart';
|
2023-04-07 11:50:02 +12:00
|
|
|
import 'package:fmassive/home_page.dart';
|
2023-03-30 15:19:24 +13:00
|
|
|
|
2023-04-09 14:39:41 +12:00
|
|
|
MyDatabase db = MyDatabase();
|
|
|
|
|
2023-03-30 15:19:24 +13:00
|
|
|
void main() {
|
2023-04-05 12:24:48 +12:00
|
|
|
runApp(MyApp());
|
2023-03-30 15:19:24 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
2023-11-10 17:09:20 +13:00
|
|
|
MyApp({super.key});
|
2023-04-07 11:50:02 +12:00
|
|
|
|
|
|
|
final navigatorKey = GlobalKey<NavigatorState>();
|
|
|
|
|
2023-03-30 15:19:24 +13:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MaterialApp(
|
2023-11-28 20:08:29 +13:00
|
|
|
title: 'Massive',
|
2023-04-13 15:09:06 +12:00
|
|
|
themeMode: ThemeMode.system,
|
2023-11-28 20:08:29 +13:00
|
|
|
home: const HomePage(),
|
2023-04-13 15:09:06 +12:00
|
|
|
darkTheme: ThemeData.dark(),
|
|
|
|
theme: ThemeData.light(),
|
2023-04-07 11:50:02 +12:00
|
|
|
navigatorKey: navigatorKey,
|
2023-03-30 15:19:24 +13:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|