Sync update: 2026-05-18 16:14:25
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:get/get.dart';
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'services/whatsapp_service.dart';
|
||||
import 'services/firebase_service.dart';
|
||||
import 'services/contacts_service.dart';
|
||||
import 'screens/conversations_screen.dart';
|
||||
import 'theme/app_theme.dart';
|
||||
|
||||
@@ -23,8 +24,12 @@ void main() async {
|
||||
));
|
||||
|
||||
// Register services before app starts
|
||||
Get.put(ContactsService(), permanent: true);
|
||||
Get.put(WhatsAppService(), permanent: true);
|
||||
Get.put(FirebaseService(), permanent: true);
|
||||
|
||||
// Initialize Contacts Service
|
||||
await Get.find<ContactsService>().init();
|
||||
Get.find<FirebaseService>().init();
|
||||
|
||||
runApp(const WhatsAppApp());
|
||||
|
||||
Reference in New Issue
Block a user