From 2f051c8da6b44a167954a5d56e976678e0c8512d Mon Sep 17 00:00:00 2001 From: Maxiwere45 Date: Tue, 9 Jun 2026 10:57:51 +0200 Subject: [PATCH] refactor: point leaf components at domain Pokemon entity Co-Authored-By: Claude Opus 4.8 --- lib/components/pokemon_tile.dart | 2 +- lib/components/pokemon_type.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/pokemon_tile.dart b/lib/components/pokemon_tile.dart index e165173..a62d0a9 100644 --- a/lib/components/pokemon_tile.dart +++ b/lib/components/pokemon_tile.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import '../models/pokemon.dart'; +import '../domain/entities/pokemon.dart'; import 'pokemon_image.dart'; class PokemonTile extends StatelessWidget { diff --git a/lib/components/pokemon_type.dart b/lib/components/pokemon_type.dart index 6afd910..533d1ed 100644 --- a/lib/components/pokemon_type.dart +++ b/lib/components/pokemon_type.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import '../models/pokemon.dart'; -import '../utils/pokemon_type.dart'; +import '../domain/entities/pokemon.dart'; +import '../presentation/theme/type_colors.dart'; // Widget qui permet d'afficher un type de Pokémon // Elle prend en paramètre un type de Pokémon