fmassive/lib/main.dart

28 lines
583 B
Dart
Raw Normal View History

2023-03-30 15:19:24 +13:00
import 'package:flutter/material.dart';
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
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',
themeMode: ThemeMode.system,
2023-11-28 20:08:29 +13:00
home: const HomePage(),
darkTheme: ThemeData.dark(),
theme: ThemeData.light(),
2023-04-07 11:50:02 +12:00
navigatorKey: navigatorKey,
2023-03-30 15:19:24 +13:00
);
}
}