match_magic/lib/main.dart

36 lines
822 B
Dart
Raw 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';
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) {
return MaterialApp(
title: 'Match Magic',
theme: ThemeData(
primarySwatch: Colors.blue,
),
2024-08-05 08:04:54 +00:00
home: const Scaffold(
2024-08-16 16:09:24 +00:00
backgroundColor: Colors.black,
2024-08-05 08:04:54 +00:00
body: MatchMagicGameScreen(),
),
);
}
}