Final testing after orientation

master
Faiz Hashmi 9 months ago
parent ee3ff98b5d
commit 6852ed87a9

@ -0,0 +1 @@
/Users/zik/fvm/versions/3.7.5

@ -0,0 +1,4 @@
{
"flutterSdkVersion": "3.7.5",
"flavors": {}
}

@ -3,7 +3,8 @@
package="com.example.queuing_system">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.INTERNET" />
<queries>
<intent>
@ -16,14 +17,15 @@
android:label="queuing_system">
<receiver
android:name="BootReceiver"
android:enabled="true"
android:exported="true"
android:name="BootReceiver"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

@ -29,7 +29,7 @@ class API {
static getCallRequestInfoByClinicInfo(String deviceIp,
{required Function(List<PatientTicketModel>, List<PatientTicketModel>, CallConfig callConfig) onSuccess, required Function(dynamic) onFailure}) async {
final body = {"ipAdress": deviceIp, "apiKey": apiKey};
bool isDevMode = true;
bool isDevMode = false;
if (isDevMode) {
final Map<String, dynamic> response = testPatientsData["data"] as Map<String, dynamic>;

@ -11,7 +11,7 @@ class BaseAppClient {
url = BASE_URL + endPoint;
try {
// try {
log("URL : $url");
log("Body : ${json.encode(body)}");
if (await Utils.checkConnection()) {
@ -36,11 +36,11 @@ class BaseAppClient {
onFailure('Please Check The Internet Connection', -1);
}
}
} catch (e) {
if (onFailure != null) {
onFailure(e.toString(), -1);
}
}
// } catch (e) {
// if (onFailure != null) {
// onFailure(e.toString(), -1);
// }
// }
}
static get(String endPoint, {Map<String, dynamic>? body, Function(dynamic response, int statusCode)? onSuccess, Function(String error, int statusCode)? onFailure}) async {

@ -139,7 +139,7 @@ class CallConfig {
callTypeVaccinationText = json['vaccinationText'];
callTypeNebulizationText = json['nebulizationText'];
textDirection = json['textDirection'] == 2 ? TextDirection.rtl : TextDirection.ltr;
screenRotationEnum = (json['orientationType'] as int).toScreenOrientationEnum();
screenRotationEnum = ((json['orientationType'] ?? 1) as int).toScreenOrientationEnum();
// screenRotationEnum = (json['screenRotationId'] as int).toScreenOrientationEnum();
}

@ -117,8 +117,8 @@ class PatientTicketModel {
roomText = json['roomText'];
queueNoText = json['queueNoText'];
callForText = json['callForText'];
orientationType = json['orientationType'];
screenRotationEnum = (json['orientationType'] as int).toScreenOrientationEnum();
orientationType = json['orientationType'] ?? 1;
screenRotationEnum = ((json['orientationType'] ?? 1) as int).toScreenOrientationEnum();
}
// "voiceLanguage": 1,

@ -296,14 +296,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.8.0"
native_device_orientation:
dependency: "direct main"
description:
name: native_device_orientation
sha256: "744a03030fad5a332a54833cd34f1e2ee51ae9acf477b4ef85bacc8823af9937"
url: "https://pub.dev"
source: hosted
version: "1.2.1"
nested:
dependency: transitive
description:

@ -47,7 +47,6 @@ dependencies:
signalr_core: ^1.1.1
intl: ^0.18.1
marquee: ^2.2.3
native_device_orientation: ^1.2.1

Loading…
Cancel
Save