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-04 12:11:40 +00:00
|
|
|
import 'package:match_magic/screens/main_menu.dart';
|
2024-08-02 10:53:40 +00:00
|
|
|
import 'package:provider/provider.dart';
|
2024-08-05 08:04:54 +00:00
|
|
|
import 'game/match_magic_game.dart';
|
|
|
|
import 'game/swap_notifier.dart';
|
2024-07-31 15:02:27 +00:00
|
|
|
|
|
|
|
void main() {
|
|
|
|
runApp(
|
2024-08-05 08:04:54 +00:00
|
|
|
MultiProvider(
|
|
|
|
providers: [
|
|
|
|
ChangeNotifierProvider(create: (_) => SwapNotifier()),
|
|
|
|
],
|
2024-07-31 15:02:27 +00:00
|
|
|
child: const MyApp(),
|
|
|
|
),
|
|
|
|
);
|
2024-08-16 16:09:24 +00:00
|
|
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
|
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-04 12:11:40 +00:00
|
|
|
return const MaterialApp(
|
|
|
|
home: MainMenu(),
|
2024-08-05 08:04:54 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|