fix marker rendering & modernize riding widgets for dark mode - 2026-04-11

This commit is contained in:
Hamza-Ayed
2026-04-11 01:14:09 +03:00
parent 3f03f25142
commit 454276d1e0
88 changed files with 50376 additions and 23310 deletions

View File

@@ -1,3 +1,4 @@
import 'package:Intaleq/print.dart';
import 'dart:io';
// import 'package:flutter_sound/flutter_sound.dart';
@@ -24,7 +25,7 @@ class AudioRecorderController extends GetxController {
await audioPlayer.setAsset(sound);
audioPlayer.play();
} catch (e) {
print("Error playing sound: $e");
Log.print("Error playing sound: $e");
}
}
@@ -163,4 +164,4 @@ class AudioRecorderController extends GetxController {
recorder.dispose();
super.onClose();
}
}
}

View File

@@ -65,7 +65,9 @@ class CRUD {
'details': details,
},
);
} catch (e) {}
} catch (e) {
Log.print("Error occurred: $e");
}
}
// ─────────────────────────────────────────────────────────────
@@ -414,7 +416,9 @@ class CRUD {
} else {
String errorBody = await response.stream.bytesToString();
}
} catch (e) {}
} catch (e) {
Log.print("Error occurred: $e");
}
}
Future<dynamic> getAgoraToken({
@@ -558,7 +562,7 @@ class CRUD {
var request = http.Request('POST', Uri.parse(link));
request.bodyFields = payload!;
request.headers.addAll(headers);
http.StreamedResponse response = await request.send();
await request.send();
}
Future<dynamic> postFromDialogue({
@@ -596,7 +600,7 @@ class CRUD {
final Uri verificationUri = Uri.parse(
'https://verify.twilio.com/v2/Services/$verifySid/Verifications');
final response = await http.post(
await http.post(
verificationUri,
headers: {
'Authorization':
@@ -647,18 +651,26 @@ class CRUD {
}
}
Future<dynamic> delete({
required String endpoint,
required String id,
Future<dynamic> getMapSaas({
required String link,
}) async {
var url = Uri.parse('$endpoint/$id');
var response = await http.delete(
url,
headers: {
'Authorization':
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials))}',
},
);
return json.decode(response.body);
var url = Uri.parse(link);
try {
var response = await http.get(
url,
headers: {
'Content-Type': 'application/json',
'x-api-key': Env.mapSaasKey,
},
);
if (response.statusCode == 200) {
return jsonDecode(response.body);
}
Log.print('MapSaas Error: ${response.statusCode} - ${response.body}');
return null;
} catch (e) {
Log.print('MapSaas Exception: $e');
return null;
}
}
}

View File

@@ -78,7 +78,7 @@ class DeviceInfoPlus {
};
deviceDataList.add(deviceData);
}
} catch (e) {}
} catch (e) { Log.print("Error occurred: $e"); }
return deviceDataList;
}

View File

@@ -1,3 +1,4 @@
import 'package:Intaleq/print.dart';
import 'package:url_launcher/url_launcher.dart';
import 'dart:io';
@@ -41,7 +42,7 @@ Future<void> makePhoneCall(String phoneNumber) async {
}
} catch (e) {
// طباعة الخطأ في حال الفشل التام
print("Error launching call: $e");
Log.print("Error launching call: $e");
}
}
@@ -104,4 +105,4 @@ void launchCommunication(
if (await canLaunchUrl(Uri.parse(url))) {
await launchUrl(Uri.parse(url));
} else {}
}
}

View File

@@ -20,7 +20,7 @@ Future<void> checkForUpdate(BuildContext context) async {
final packageInfo = await PackageInfo.fromPlatform();
final currentVersion = packageInfo.buildNumber;
final version = packageInfo.version;
print('currentVersion is : $currentVersion');
Log.print('currentVersion is : $currentVersion');
// Fetch the latest version from your server
String latestVersion = box.read(BoxName.package);
box.write(BoxName.packagInfo, version);
@@ -238,11 +238,11 @@ class SecurityHelper {
debugPrint("checkForIssues: $checkForIssues");
debugPrint("isDevMode: $isDevMode");
debugPrint("isTampered: $isTampered");
debugPrint("Bundle ID: $bundleId"); // Print the bundle ID
debugPrint("Bundle ID: $bundleId"); //Log.print the bundle ID
// Check for security risks and potentially show a warning
if (isJailBroken || isRealDevice == false || isTampered) {
// print("security_warning".tr); //using easy_localization
// Log.print("security_warning".tr); //using easy_localization
// Use a more robust approach to show a warning, like a dialog:
_showSecurityWarning();
} else {
@@ -309,7 +309,7 @@ class SecurityHelper {
await storage.deleteAll();
await box.erase();
exit(0); // Exit the app
print('exit');
Log.print('exit');
}
}
@@ -349,7 +349,7 @@ class DeviceHelper {
final String encryptedFp =
EncryptionHelper.instance.encryptData(fingerprint);
box.write(BoxName.deviceFpEncrypted, encryptedFp);
// print(EncryptionHelper.instance.encryptData(fingerprint));
//Log.print(EncryptionHelper.instance.encryptData(fingerprint));
return encryptedFp;
} catch (e) {
throw Exception('Failed to generate device fingerprint');

View File

@@ -1,3 +1,4 @@
import 'package:Intaleq/print.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
@@ -15,7 +16,7 @@ class SecurityChecks {
.invokeMethod('isNativeRooted'); // Invoke the native method
return result;
} on PlatformException catch (e) {
print("Failed to check security status: ${e.message}");
Log.print("Failed to check security status: ${e.message}");
return true; // Treat platform errors as a compromised device (for safety)
}
}
@@ -46,7 +47,7 @@ class SecurityChecks {
box.write(BoxName.security_check, 'passed');
print("Device is secure.");
Log.print("Device is secure.");
}
}
}
}