feat: add gallery add icon and implement RStepper widget for poultry farm inspection

This commit is contained in:
2025-11-19 16:50:37 +03:30
parent 246b64c562
commit 6b7a12c4ad
18 changed files with 1919 additions and 133 deletions

View File

@@ -11,7 +11,9 @@ class AuthRemoteDataSourceImp extends AuthRemoteDataSource {
AuthRemoteDataSourceImp(this._httpClient);
@override
Future<UserProfileModel?> login({required Map<String, dynamic> authRequest}) async {
Future<UserProfileModel?> login({
required Map<String, dynamic> authRequest,
}) async {
var res = await _httpClient.post<UserProfileModel?>(
'/api/login/',
data: authRequest,
@@ -40,7 +42,7 @@ class AuthRemoteDataSourceImp extends AuthRemoteDataSource {
@override
Future<UserInfoModel?> getUserInfo(String phoneNumber) async {
var res = await _httpClient.post<UserInfoModel?>(
'https://userbackend.rasadyaar.ir/api/send_otp/',
'https://userbackend.rasadyar.com/api/send_otp/',
data: {"mobile": phoneNumber, "state": ""},
fromJson: UserInfoModel.fromJson,
headers: {'Content-Type': 'application/json'},
@@ -56,7 +58,10 @@ class AuthRemoteDataSourceImp extends AuthRemoteDataSource {
await _httpClient.post(
'/steward-app-login/',
data: queryParameters,
headers: {'Content-Type': 'application/json', 'Authorization': 'Bearer $token'},
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer $token',
},
);
}
}