Update codebase
This commit is contained in:
@@ -226,10 +226,10 @@ class InviteScreen extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 8),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
onPressed: () {
|
||||
final appName = 'Tripz';
|
||||
final appName = 'Siro';
|
||||
final isDriver = controller.selectedTab == 0;
|
||||
final shareText = isDriver
|
||||
? 'Join $appName as a driver! Use my referral code: ${rc.referralCode}\nDownload: ${AppLink.inviteRedirectUrl}?code=${rc.referralCode}&app=driver\n\n💡 Note: If the link is not clickable, save this number or reply to activate links!'
|
||||
? 'Join $appName as a driver! Use my referral code: ${rc.referralCode}\n${AppLink.driverDownloadLinks}\n\n💡 Note: If the link is not clickable, save this number or reply to activate links!'
|
||||
: 'Get a ride with $appName! Use my referral code: ${rc.referralCode} for a discount.\nDownload: ${AppLink.inviteRedirectUrl}?code=${rc.referralCode}&app=rider\n\n💡 Note: If the link is not clickable, save this number or reply to activate links!';
|
||||
Share.share(shareText);
|
||||
},
|
||||
@@ -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