match_magic/lib/main.dart

30 lines
694 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:match_magic/screens/main_menu.dart';
import 'package:provider/provider.dart';
import 'game/match_magic_game.dart';
import 'game/swap_notifier.dart';
void main() {
runApp(
MultiProvider(
providers: [
ChangeNotifierProvider(create: (_) => SwapNotifier()),
],
child: const MyApp(),
),
);
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: MainMenu(),
);
}
}