first commit

This commit is contained in:
Andreas Malvino
2025-06-02 22:39:03 +07:00
commit e7090af3da
245 changed files with 49210 additions and 0 deletions

View File

@ -0,0 +1,25 @@
import 'package:flutter/foundation.dart';
import 'package:get/get.dart';
import '../data/providers/auth_provider.dart';
import '../modules/splash/controllers/splash_controller.dart';
class SplashBinding extends Bindings {
@override
void dependencies() {
debugPrint('Initializing SplashBinding dependencies');
// Pastikan AuthProvider dibuat sekali dan bersifat permanen
if (!Get.isRegistered<AuthProvider>()) {
debugPrint('Registering AuthProvider in SplashBinding');
Get.put<AuthProvider>(AuthProvider(), permanent: true);
} else {
debugPrint('AuthProvider already registered');
}
// Buat SplashController
debugPrint('Creating SplashController');
Get.put<SplashController>(SplashController());
debugPrint('SplashBinding dependencies initialized');
}
}