- Supprime 5 services inatteignables depuis l'UI (~3 000 lignes) : distortion_correction, image_processing, target_detection, opencv_impact_detection, target_rectify - AnalysisProvider allégé (835 -> ~360 lignes) : retrait de la détection par références, de la détection auto d'impacts, du workflow distorsion et du doublon moveShot - Retire les dépendances inutilisées google_mlkit_object_detection et google_mlkit_document_scanner du pubspec - Le bouton ↻ du Plotting efface désormais tous les impacts en un clic (clearShots) sans relancer la détection auto ni toucher la calibration - Nettoie les paramètres morts de TargetOverlay (referenceImpacts, onAddShot), le flag _isSelectingReferences, _buildActionButtons vide et le résidu _detectionTimer de capture_screen - Supprime le dossier tests/ (brouillons d'expérimentation OpenCV) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
47 lines
1.5 KiB
Dart
47 lines
1.5 KiB
Dart
import 'dart:io';
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:intl/date_symbol_data_local.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
|
|
import 'app.dart';
|
|
import 'core/theme/theme_provider.dart';
|
|
import 'data/repositories/session_repository.dart';
|
|
import 'services/score_calculator_service.dart';
|
|
import 'services/grouping_analyzer_service.dart';
|
|
import 'features/session/session_provider.dart';
|
|
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
// Initialize date formatting for French locale
|
|
await initializeDateFormatting('fr_FR', null);
|
|
|
|
// Initialize FFI for desktop platforms
|
|
if (!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
|
|
sqfliteFfiInit();
|
|
databaseFactory = databaseFactoryFfi;
|
|
}
|
|
|
|
FlutterError.onError = (FlutterErrorDetails details) {
|
|
FlutterError.presentError(details);
|
|
};
|
|
|
|
runApp(
|
|
MultiProvider(
|
|
providers: [
|
|
Provider<ScoreCalculatorService>(
|
|
create: (_) => ScoreCalculatorService(),
|
|
),
|
|
Provider<GroupingAnalyzerService>(
|
|
create: (_) => GroupingAnalyzerService(),
|
|
),
|
|
Provider<SessionRepository>(create: (_) => SessionRepository()),
|
|
ChangeNotifierProvider<ThemeProvider>(create: (_) => ThemeProvider()),
|
|
ChangeNotifierProvider<SessionProvider>(create: (_) => SessionProvider()),
|
|
],
|
|
child: const BullyApp(),
|
|
),
|
|
);
|
|
}
|