feat: Add logger service and improve expense dialog with enhanced receipt management and calculation logic.

This commit is contained in:
Van Leemput Dayron
2025-11-28 12:54:54 +01:00
parent cad9d42128
commit fd710b8cb8
35 changed files with 2148 additions and 1296 deletions

View File

@@ -1,3 +1,4 @@
// ignore_for_file: avoid_print
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_storage/firebase_storage.dart';
import 'package:travel_mate/firebase_options.dart';
@@ -32,7 +33,7 @@ void main() async {
final location = customMeta['location'] ?? 'Inconnue';
final normalizedLocation =
customMeta['normalizedLocation'] ?? 'Non définie';
final source = customMeta['source'] ?? 'Inconnue';
final uploadedAt = customMeta['uploadedAt'] ?? 'Inconnue';
// Récupérer l'URL de téléchargement
@@ -76,18 +77,17 @@ void main() async {
int totalDuplicates = 0;
for (final entry in locationGroups.entries) {
final location = entry.key;
final images = entry.value;
if (images.length > 1) {
totalDuplicates += images.length - 1;
for (int i = 0; i < images.length; i++) {
final image = images[i];
}
for (int i = 0; i < images.length; i++) {}
} else {}
}
if (totalDuplicates > 0) {}
} catch (e) {}
} catch (e) {
print('Erreur globale: $e');
}
}