- gen-l10n setup (flutter_localizations, intl, l10n.yaml, ARB en/fr) - localeProvider (persisted) wired into MaterialApp - language selector in the System page (alongside the color palette) - all user-facing strings across screens moved to AppLocalizations Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
25 lines
816 B
Dart
25 lines
816 B
Dart
import 'package:flutter/material.dart';
|
|
import '../../../l10n/app_localizations.dart';
|
|
|
|
/// Barre de titre de la liste du Pokédex.
|
|
class PokedexListHeader extends StatelessWidget {
|
|
const PokedexListHeader({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
|
|
color: const Color(0xFF90A4AE),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
const Icon(Icons.menu, color: Colors.black87),
|
|
Text(AppLocalizations.of(context)!.listNational,
|
|
style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold, letterSpacing: 2)),
|
|
const Icon(Icons.search, color: Colors.black87),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|