docs(code): add doc comments to all public widgets and providers
Document MyApp, MainPage, PokemonImage/Tile/TypeWidget, and the gen-filter and theme providers/notifiers. Every public class/enum now has a /// doc. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Image réseau d'un Pokémon, avec URL de repli et placeholder en cas d'échec de chargement.
|
||||
class PokemonImage extends StatelessWidget {
|
||||
final String imageUrl;
|
||||
final String? fallbackUrl;
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import '../../domain/entities/pokemon.dart';
|
||||
import 'pokemon_image.dart';
|
||||
|
||||
/// Ligne de liste d'un Pokémon : image et nom si attrapé, masqué (???) sinon.
|
||||
class PokemonTile extends StatelessWidget {
|
||||
const PokemonTile(this.pokemon, {Key? key}) : super(key: key);
|
||||
|
||||
|
||||
@@ -2,9 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import '../../domain/entities/pokemon.dart';
|
||||
import '../theme/type_colors.dart';
|
||||
|
||||
// Widget qui permet d'afficher un type de Pokémon
|
||||
// Elle prend en paramètre un type de Pokémon
|
||||
// Elle affiche le nom du type avec une couleur de fond correspondant au type
|
||||
/// Pastille colorée affichant le nom d'un type de Pokémon (couleur de fond selon le type).
|
||||
class PokemonTypeWidget extends StatelessWidget {
|
||||
const PokemonTypeWidget(this.type, {Key? key}) : super(key: key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user