2024-07-31 15:02:27 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2024-08-16 16:09:24 +00:00
|
|
|
import 'package:flutter/services.dart';
|
2024-09-27 13:40:14 +00:00
|
|
|
import 'package:match_magic/db/main_db.dart';
|
|
|
|
import 'package:match_magic/screens/main_menu_screen.dart';
|
2024-07-31 15:02:27 +00:00
|
|
|
|
2024-09-27 13:40:14 +00:00
|
|
|
void main() async {
|
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await MainDB.instance.initMainDB();
|
|
|
|
SystemChrome.setPreferredOrientations([
|
|
|
|
DeviceOrientation.portraitUp,
|
|
|
|
DeviceOrientation.portraitDown,
|
|
|
|
]).then(
|
|
|
|
(value) => runApp(
|
|
|
|
// MultiProvider(
|
|
|
|
// providers: [
|
|
|
|
// ChangeNotifierProvider(create: (_) => SwapNotifier()),
|
|
|
|
// ],
|
|
|
|
// child: const
|
|
|
|
MyApp(),
|
2024-07-31 15:02:27 +00:00
|
|
|
),
|
2024-09-27 13:40:14 +00:00
|
|
|
// )
|
2024-07-31 15:02:27 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
const MyApp({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-09-27 13:40:14 +00:00
|
|
|
return MaterialApp(
|
|
|
|
home: MainMenuScreen(),
|
2024-08-05 08:04:54 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|