2024-07-31 15:02:27 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2024-08-02 10:53:40 +00:00
|
|
|
import 'package:provider/provider.dart';
|
2024-07-31 15:02:27 +00:00
|
|
|
import 'package:match_magic/screen/game_screen.dart';
|
|
|
|
import 'package:match_magic/models/game_state.dart';
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
runApp(
|
|
|
|
ChangeNotifierProvider(
|
|
|
|
create: (context) => GameState(),
|
|
|
|
child: const MyApp(),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
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 GameScreen(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|