match_magic/lib/main.dart

36 lines
822 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter/services.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 MaterialApp(
title: 'Match Magic',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const Scaffold(
backgroundColor: Colors.black,
body: MatchMagicGameScreen(),
),
);
}
}