Update: 2026-08-08 14:26:43

This commit is contained in:
Hamza-Ayed
2026-08-08 14:26:44 +03:00
parent b97a1fd587
commit ef37752ceb
7 changed files with 123 additions and 59 deletions
@@ -347,11 +347,7 @@ class InviteScreen extends StatelessWidget {
onPressed: () async {
await controller.pickContactFromNativeApp();
if (controller.contacts.isNotEmpty) {
if (box.read(BoxName.isSavedPhones) == null) {
// controller.savePhoneToServer();
box.write(BoxName.isSavedPhones, true);
}
_showContactsDialog(Get.context!);
await _openContactsDialog(Get.context!);
}
},
),
@@ -731,6 +727,14 @@ class InviteScreen extends StatelessWidget {
}
*/
/// ‏تُحمَّل جهات الاتصال هنا عند الطلب — كانت تُقرأ وتُرفع تلقائياً عند
/// ‏فتح الشاشة. لا شيء يغادر الجهاز الآن.
Future<void> _openContactsDialog(BuildContext context) async {
await controller.loadDeviceContacts();
if (!context.mounted) return;
_showContactsDialog(context);
}
void _showContactsDialog(BuildContext context) {
showCupertinoModalPopup(
context: context,