match_magic/lib/main.dart

35 lines
764 B
Dart
Raw Normal View History

2024-08-05 11:04:54 +03:00
import 'package:flame/sprite.dart';
2024-07-31 18:02:27 +03:00
import 'package:flutter/material.dart';
2024-08-05 11:04:54 +03:00
import 'package:match_magic/game/sprite_loader.dart';
2024-08-02 13:53:40 +03:00
import 'package:provider/provider.dart';
2024-08-05 11:04:54 +03:00
import 'game/match_magic_game.dart';
import 'game/swap_notifier.dart';
2024-07-31 18:02:27 +03:00
void main() {
runApp(
2024-08-05 11:04:54 +03:00
MultiProvider(
providers: [
ChangeNotifierProvider(create: (_) => SwapNotifier()),
],
2024-07-31 18:02:27 +03:00
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,
),
2024-08-05 11:04:54 +03:00
home: const Scaffold(
body: MatchMagicGameScreen(),
),
);
}
}