Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts). Signed-off-by: lions dev Team
This commit is contained in:
19
lib/core/di/injection_container.dart
Normal file
19
lib/core/di/injection_container.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:get_it/get_it.dart';
|
||||
|
||||
/// Export getIt for convenience
|
||||
export 'injection.dart' show getIt;
|
||||
|
||||
import 'injection.dart';
|
||||
|
||||
/// Service locator global
|
||||
final GetIt sl = getIt;
|
||||
|
||||
/// Initialise toutes les dépendances de l'application
|
||||
Future<void> initializeDependencies() async {
|
||||
configureDependencies();
|
||||
}
|
||||
|
||||
/// Nettoie toutes les dépendances (optionnel, pour les tests)
|
||||
Future<void> cleanupDependencies() async {
|
||||
await sl.reset();
|
||||
}
|
||||
Reference in New Issue
Block a user