35 lines
831 B
Dart
35 lines
831 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:match_magic/db/main_db.dart';
|
|
import 'package:match_magic/screens/main_menu_screen.dart';
|
|
|
|
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(),
|
|
),
|
|
// )
|
|
);
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
home: MainMenuScreen(),
|
|
);
|
|
}
|
|
}
|