Update: 2026-08-08 14:26:43
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user