modified UI padding handling approach

added auth API endpoints
initialized curtains view for further development
This commit is contained in:
Mohammad Salameh
2024-03-05 11:18:08 +03:00
parent 4087f9c71c
commit a9fdb2fc76
24 changed files with 380 additions and 298 deletions
+11
View File
@@ -1,3 +1,14 @@
abstract class ApiEndpoints {
static const String apiKey = '';
//base
static const String baseUrl = 'faris:4001';
//auth
static const String auth = '/authentication/user';
static const String signUp = '$auth/signup';
static const String signIn = '$auth/login';
static const String sendOTP = '$auth/send-otp';
static const String verifyOTP = '$auth/verify-otp';
static const String forgetPassword = '$auth/forget-password';
}
+4 -4
View File
@@ -36,7 +36,7 @@ class HTTPService {
return client;
}
Future<T> getRequest<T>({
Future<T> get<T>({
required String path,
Map<String, dynamic>? queryParameters,
required T Function(dynamic) expectedResponseModel,
@@ -55,7 +55,7 @@ class HTTPService {
}
}
Future<T> postRequest<T>(
Future<T> post<T>(
{required String path,
Map<String, dynamic>? queryParameters,
Options? options,
@@ -74,7 +74,7 @@ class HTTPService {
}
}
Future<T> patchRequest<T>(
Future<T> patch<T>(
{required String path,
Map<String, dynamic>? queryParameters,
dynamic body,
@@ -94,7 +94,7 @@ class HTTPService {
}
}
Future<T> downloadRequest<T>(
Future<T> download<T>(
{required String path,
required String savePath,
Map<String, dynamic>? queryParameters,