match_magic/lib/main.dart

35 lines
831 B
Dart
Raw Permalink Normal View History

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';
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
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-07-31 15:02:27 +00:00
);
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MainMenuScreen(),
2024-08-05 08:04:54 +00:00
);
}
}