33 lines
947 B
Dart
33 lines
947 B
Dart
import 'package:flutter/material.dart';
|
|
import 'pages/home_page.dart';
|
|
import 'pages/game_page.dart';
|
|
import 'pages/pokemon_list.dart';
|
|
import 'pages/pokemon_detail.dart';
|
|
|
|
void main() {
|
|
runApp(const MyApp());
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Pokéguess', // Titre de l'application
|
|
theme: ThemeData(
|
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
|
useMaterial3: true,
|
|
),
|
|
debugShowCheckedModeBanner:
|
|
false, // Permet de masquer la bannière "Debug"
|
|
routes: {
|
|
'/': (context) => const HomePage(), // Menu principal
|
|
'/game': (context) => const GamePage(), // Page de jeu
|
|
'/pokedex': (context) => const PokemonListPage(), // Liste des Pokémon
|
|
'/pokemon-detail': (context) => const PokemonDetailPage(),
|
|
},
|
|
);
|
|
}
|
|
}
|