feat: implement base architecture and core repositories for weapon tracking and target analysis functionality
This commit is contained in:
@@ -37,7 +37,7 @@ class _HistoryScreenState extends State<HistoryScreen> {
|
||||
|
||||
try {
|
||||
final repository = context.read<SessionRepository>();
|
||||
final sessions = await repository.getAllSessions(targetType: _filterType);
|
||||
final sessions = await repository.getAllSessions();
|
||||
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
@@ -95,12 +95,17 @@ class _HistoryScreenState extends State<HistoryScreen> {
|
||||
locale: const Locale('fr', 'FR'),
|
||||
builder: (context, child) {
|
||||
return Theme(
|
||||
data: Theme.of(context).copyWith(
|
||||
colorScheme: ColorScheme.dark(
|
||||
primary: AppTheme.primaryColor,
|
||||
onPrimary: Colors.white,
|
||||
surface: Theme.of(context).cardColor,
|
||||
onSurface: Colors.white,
|
||||
data: ThemeData.light().copyWith(
|
||||
colorScheme: ColorScheme.light(
|
||||
primary: AppTheme.primaryColor, // En-tête et sélection
|
||||
onPrimary: Colors.white, // Texte sur en-tête/sélection
|
||||
surface: Colors.white, // Fond du calendrier
|
||||
onSurface: Colors.black87, // Texte des dates (Noir sur Blanc)
|
||||
secondary: AppTheme.primaryColor,
|
||||
),
|
||||
dialogBackgroundColor: Colors.white,
|
||||
textButtonTheme: TextButtonThemeData(
|
||||
style: TextButton.styleFrom(foregroundColor: AppTheme.primaryColor),
|
||||
),
|
||||
),
|
||||
child: child!,
|
||||
|
||||
Reference in New Issue
Block a user