beta commit

This commit is contained in:
Odein
2023-10-26 15:04:34 +04:30
parent ddc5649b1c
commit 11f910bb1c
262 changed files with 31865 additions and 15718 deletions
+14
View File
@@ -0,0 +1,14 @@
import 'package:flutter/material.dart';
const kLightBlue = Color(0xFF32CAD5);
const kLightBlueSub = Color(0xFF5FDDE7);
const kPink = Color(0xFFEE3552);
const kPinkSub = Color(0xFFFE687F);
const kBlue = Color(0xFF389ADC);
const kBlueSub = Color(0xFF60AFE2);
const kPurple = Color(0xFFAF3C77);
const kPurpleSub = Color(0xFFBB5B8D);
const kDarkBlue = Color(0xFF14537D);
const kDarkBlueSub = Color(0XFF668FAC);
const kDarkPurple = Color(0xFF862054);
const kDarkPurpleSub = Color(0xFFB75788);
+50 -27
View File
@@ -1,27 +1,50 @@
class Routes {
static const cycleAddScreen = '/CycleAddScreen';
static const cycleDetailScreen = '/CycleDetailScreen';
static const cycleFilterScreen = '/CycleFilterScreen';
static const cycleResultScreen = '/CycleResultScreen';
static const cycleScanScreen = '/CycleScanScreen';
static const homePage = '/HomePage';
static const labelAddScreen = '/LabelAddScreen';
static const labelUpdateScreen = '/LabelUpdateScreen';
static const labelDetailScreen = '/LabelDetailScreen';
static const labelFilterScreen = '/LabelFilterScreen';
static const labelResultScreen = '/LabelResultScreen';
static const labelScanScreen = '/LabelScanScreen';
static const loginScreen = '/LoginScreen';
static const forgetPassScreen = '/ForgetPassScreen';
static const sendCodeScreen = '/SendCodeScreen';
static const rePassScreen = '/RePassScreen';
static const myInfoScreen = '/MyInfoScreen';
static const testResultAddScreen = '/TestResultAddScreen';
static const testDetailsScreen = '/TestDetailsScreen';
static const testFilterScreen = '/TestFilterScreen';
static const testResultScreen = '/TestResultScreen';
static const testVerifyScreen = '/TestVerifyScreen';
static const testScanScreen = '/TestScanScreen';
static const captureImageScreen = '/captureImageScreen';
}
class Routes {
static const cycleAddScreen = '/CycleAddScreen';
static const cycleDetailScreen = '/CycleDetailScreen';
static const cycleFilterScreen = '/CycleFilterScreen';
static const cycleResultScreen = '/CycleResultScreen';
static const cycleScanScreen = '/CycleScanScreen';
static const homePage = '/HomePage';
static const labelAddScreen = '/LabelAddScreen';
static const labelUpdateScreen = '/LabelUpdateScreen';
static const labelDetailScreen = '/LabelDetailScreen';
static const labelFilterScreen = '/LabelFilterScreen';
static const labelResultScreen = '/LabelResultScreen';
static const labelScanScreen = '/LabelScanScreen';
static const loginScreen = '/LoginScreen';
static const forgetPassScreen = '/ForgetPassScreen';
static const sendCodeScreen = '/SendCodeScreen';
static const rePassScreen = '/RePassScreen';
static const myInfoScreen = '/MyInfoScreen';
static const testResultAddScreen = '/TestResultAddScreen';
static const testDetailsScreen = '/TestDetailsScreen';
static const testFilterScreen = '/TestFilterScreen';
static const testResultScreen = '/TestResultScreen';
static const testVerifyScreen = '/TestVerifyScreen';
static const testScanScreen = '/TestScanScreen';
static const captureImageScreen = '/captureImageScreen';
static const packageAddScreen = '/PackageAddScreen';
static const packageResultScreen = '/PackageResultScreen';
static const packageFilterScreen = '/PackageFilterScreen';
static const packageDetailScreen = '/PackageDetailScreen';
static const itemAddScreen = '/ItemAddScreen';
static const itemResultScreen = '/ItemResultScreen';
static const itemFilterScreen = '/ItemFilterScreen';
static const itemDetailScreen = '/ItemDetailScreen';
static const formTestResultScreen = '/FormTestResultScreen';
static const cycleUpdateScreen = '/CycleUpdateScreen';
static const packageUpdateScreen = '/PackageUpdateScreen';
static const itemUpdateScreen = '/ItemUpdateScreen';
static const itemScanScreen = '/ItemScanScreen';
static const packageScanScreen = '/PackageScanScreen';
static const myItemsResultScreen = '/MyItemsResultScreen';
static const myItemsFilterScreen = '/MyItemsFilterScreen';
static const myItemsDetailScreen = '/MyItemsDetailScreen';
static const itemsTransferScreen = '/ItemsTransferScreen';
static const myItemsHistoryScreen = '/MyItemsHistoryScreen';
static const myPackagesResultScreen = '/MyPackagesResultScreen';
static const myPackagesFilterScreen = '/MyPackagesFilterScreen';
static const myPackagesDetailScreen = '/MyPackagesDetailScreen';
static const packagesTransferScreen = '/PackagesTransferScreen';
static const myPackagesHistoryScreen = '/MyPackagesHistoryScreen';
}
+166 -81
View File
@@ -1,81 +1,166 @@
class Url {
static const String baseUrl = 'https://www.cssd-doc.com/api';
static const String login = '$baseUrl/login';
static const String getInputs = '$baseUrl/GetInputs';
static const String getUserInfo = '$baseUrl/GetInfo';
// static const String testResults = '$baseUrl/TestResults';
static const String filterItems = '$baseUrl/TestResults/ListFilterItems';
static const String labelItems = '$baseUrl/GetLabels';
static const String packageItems = '$baseUrl/GetPackages';
static const String requestResetPass = '$baseUrl/password/phone';
static const String verifyResetPass = '$baseUrl/password/verifyCode';
static const String sendResetPass = '$baseUrl/password/reset';
static const String addImage = '$baseUrl/UploadFile';
static String testResults(int id) {
return '$baseUrl/TestResults?page=$id';
}
static String testResultVerification(String id,String value) {
return '$baseUrl/TestResults/Verify/$id/$value';
}
static String labelResults(int id) {
return '$baseUrl/Labels?page=$id';
}
static String cycleResults(int id) {
return '$baseUrl/Cycles?page=$id';
}
static String verifyTest(int id) {
return '$baseUrl/TestResults/Verify/$id';
}
static String testResultFormValues(String id) {
return '$baseUrl/TestResults/$id/edit';
}
static String updateTestResult(String id) {
return '$baseUrl/TestResults/$id';
}
static const String createTestResult = '$baseUrl/TestResults';
static const String createCycleResult = '$baseUrl/Cycles';
static const String createLabelResult = '$baseUrl/Labels';
static String updateLabelResult(String id) {
return '$baseUrl/Labels/$id';
}
static String getTestResult(String id) {
return '$baseUrl/TestResults/$id';
}
static String getLabelResult(String id) {
return '$baseUrl/Labels/$id';
}
static String getCycleResult(String id) {
return '$baseUrl/Cycles/$id';
}
static String removeTestResult(String id) {
return '$baseUrl/TestResults/$id';
}
}
class Url {
static const String baseUrl = 'https://www.cssd-doc.com/api';
// https://app.cssd-doc.com
static const String login = '$baseUrl/login';
static const String logOut = '$baseUrl/logOut';
static const String getInputs = '$baseUrl/GetInputs';
static const String getUserInfo = '$baseUrl/GetInfo';
// static const String testResults = '$baseUrl/TestResults';
static const String filterItems = '$baseUrl/TestResults/ListFilterItems';
static const String labelItems = '$baseUrl/GetLabels';
static const String packageItems = '$baseUrl/GetPackages';
static const String itemItems = '$baseUrl/GetItems';
static const String requestResetPass = '$baseUrl/password/phone';
static const String verifyResetPass = '$baseUrl/password/verifyCode';
static const String sendResetPass = '$baseUrl/password/reset';
static const String addImage = '$baseUrl/UploadFile';
// static String getUserMedicalCenterId(int id) {
// return '$baseUrl/users?medical_center_id=$id';
// }
static String testResults(int id) {
return '$baseUrl/TestResults?page=$id';
}
static String labelResults(int id) {
return '$baseUrl/Labels?page=$id';
}
static String cycleResults(int id) {
return '$baseUrl/Cycles?page=$id';
}
static String packageResults(int id) {
return '$baseUrl/Packages?page=$id';
}
static String itemResults(int id) {
return '$baseUrl/Items?page=$id';
}
static String verifyTest(int id) {
return '$baseUrl/TestResults/Verify/$id';
}
static String testResultFormValues(String id) {
return '$baseUrl/TestResults/$id/edit';
}
static String updateTestResult(String id) {
return '$baseUrl/TestResults/$id';
}
static String updateCycleResult(String id) {
return '$baseUrl/Cycles/$id';
}
static String updatePackageResult(String id) {
return '$baseUrl/Packages/$id';
}
static String updateItemResult(String id) {
return '$baseUrl/Items/$id';
}
static const String createTestResult = '$baseUrl/TestResults';
static const String createCycleResult = '$baseUrl/Cycles';
static const String createLabelResult = '$baseUrl/Labels';
static const String createPackageResult = '$baseUrl/Packages';
static const String createItemResult = '$baseUrl/Items';
static String getMyItems(int id) {
return '$baseUrl/transfer-my-items?page=$id';
}
static String getHospitalItems(int id) {
return '$baseUrl/transfer-items?page=$id';
}
static String getMyItemRequests = '$baseUrl/my-suspended-transfer-items';
static const String getHospitalItemRequests =
'$baseUrl/suspended-transfer-items';
static String transferItems(String id) {
return '$baseUrl/transfer-items/$id';
}
static String testResultVerification(String id, String value) {
return '$baseUrl/TestResults/Verify/$id/$value';
}
static String verifyItemRequests(String id, String value) {
return '$baseUrl/transfer-items/ChangeStatus/$id';
}
static String updateLabelResult(String id) {
return '$baseUrl/Labels/$id';
}
static String getTestResult(String id) {
return '$baseUrl/TestResults/$id';
}
static String getLabelResult(String id) {
return '$baseUrl/Labels/$id';
}
static String getCycleResult(String id) {
return '$baseUrl/Cycles/$id';
}
static String removeTestResult(String id) {
return '$baseUrl/TestResults/$id';
}
static String removeLabels(String id) {
return '$baseUrl/Labels/$id';
}
static String removeCycles(String id) {
return '$baseUrl/Cycles/$id';
}
static String getPackageResult(String id) {
return '$baseUrl/Packages/$id';
}
static String removePackages(String id) {
return '$baseUrl/Packages/$id';
}
static String getItemResult(String id) {
return '$baseUrl/Items/$id';
}
static String removeItems(String id) {
return '$baseUrl/Items/$id';
}
static String changeItemStatus(String id) {
return '$baseUrl/Items/ChangeStatus/$id';
}
static String getUsers(String id) {
return '$baseUrl/Users?medicalCenter_id=$id';
}
}
+11 -11
View File
@@ -1,11 +1,11 @@
class User {
static String _token;
static String get token {
return 'Bearer ' + User._token;
}
static set token (String token) {
User._token = token;
}
}
class User {
static String? _token;
static String get token {
return 'Bearer ' + User._token!;
}
static set token(String token) {
User._token = token;
}
}