Final testing after orientation

master
Faiz Hashmi 2 years 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"> package="com.example.queuing_system">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <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> <queries>
<intent> <intent>
@ -16,14 +17,15 @@
android:label="queuing_system"> android:label="queuing_system">
<receiver <receiver
android:name="BootReceiver"
android:enabled="true" android:enabled="true"
android:exported="true" android:exported="true"
android:name="BootReceiver"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED"> android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" /> <action android:name="android.intent.action.QUICKBOOT_POWERON" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter> </intent-filter>

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

@ -11,7 +11,7 @@ class BaseAppClient {
url = BASE_URL + endPoint; url = BASE_URL + endPoint;
try { // try {
log("URL : $url"); log("URL : $url");
log("Body : ${json.encode(body)}"); log("Body : ${json.encode(body)}");
if (await Utils.checkConnection()) { if (await Utils.checkConnection()) {
@ -36,11 +36,11 @@ class BaseAppClient {
onFailure('Please Check The Internet Connection', -1); onFailure('Please Check The Internet Connection', -1);
} }
} }
} catch (e) { // } catch (e) {
if (onFailure != null) { // if (onFailure != null) {
onFailure(e.toString(), -1); // 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 { 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']; callTypeVaccinationText = json['vaccinationText'];
callTypeNebulizationText = json['nebulizationText']; callTypeNebulizationText = json['nebulizationText'];
textDirection = json['textDirection'] == 2 ? TextDirection.rtl : TextDirection.ltr; 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(); // screenRotationEnum = (json['screenRotationId'] as int).toScreenOrientationEnum();
} }

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

@ -296,14 +296,6 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.8.0" 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: nested:
dependency: transitive dependency: transitive
description: description:

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

Loading…
Cancel
Save