Merged with dev

This commit is contained in:
Abdullah Alassaf
2024-07-28 13:19:05 +03:00
9 changed files with 156 additions and 107 deletions

View File

@ -1,8 +1,8 @@
import 'dart:async';
import 'package:syncrow_app/features/app_layout/bloc/home_cubit.dart';
import 'package:syncrow_app/features/auth/model/user_model.dart';
import 'package:syncrow_app/features/menu/bloc/profile_bloc/region_model.dart';
import 'package:syncrow_app/features/menu/bloc/profile_bloc/time_zone_model.dart';
import 'package:syncrow_app/features/menu/model/region_model.dart';
import 'package:syncrow_app/features/menu/model/time_zone_model.dart';
import 'package:syncrow_app/services/api/api_links_endpoints.dart';
import 'package:syncrow_app/services/api/http_service.dart';
@ -43,6 +43,7 @@ class ProfileApi {
rethrow;
}
}
static Future saveTimeZone({String? regionUuid,}) async {
try {
final response = await _httpService.put(
@ -99,7 +100,6 @@ class ProfileApi {
return response as List<RegionModel>;
}
static Future<List<TimeZone>> fetchTimeZone() async {
final response = await _httpService.get(
path: ApiEndpoints.getTimezone,
@ -111,5 +111,4 @@ class ProfileApi {
return response as List<TimeZone>;
}
}